How to get image filename in indesign cs3

Hi,
    I want to get a filename of a selected rectangle frame graphic child item like tiff image or pdf file. Please help me with a code snippet.
Thanks,
K.Saravanan.

app.activeWindow.activeSpread = myDocument.spreads[j];
app.activeWindow.zoom(ZoomOptions.FIT_SPREAD);

Similar Messages

  • How to get the filename from J2SE File adapter

    In our project scenario , we are using J2EE and J2SE engine both .J2EE for mapping  and J2SE for Deliveying the message .
    In one senario, routing will be based on the filename .
    J2SE Sender File adapter --- XI Adapter --- XI pipe line
    So the File reaching to XI pipelane via J2SE File adapter--> XI adapter.
    When we are using the dynamic configurator in the XI to get the filename
    we are not able to get the file name  becasue it is coming to XI via
    XI adapter.
    How to get the filename ????Hope I am clear about the problem.

    hi,
    try this
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    //obtengo la Key del FileName
    DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
    http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
    /people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
    Hope it helps
    Thanks
    Rodrigo
    Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM

  • How to get image using Http and how to save in Smulator

    Hi guys,
    Am working in black berry bold. i dont know how to get image using htp connection and one more thing i need to save this image in side simulator directory............. what are the specific API i should...
    Guide me.........

    If you want the input image size you need to pass it in as parameters.
    A discussion thread on this topic is:
    http://forums.adobe.com/thread/29948
    -- Daniel R. <[email protected]> http://danielr.neophi.com/

  • How to select a spread in Indesign CS3?

    Hello All!
    Can somebody give me an idea how to select a spread in Indesign CS3 ?
    The simplest script
    #target indesign
    var myDocument = app.documents.item(0);
    app.activeWindow.zoom(ZoomOptions.FIT_SPREAD);
    for (j=0; j < myDocument.spreads.length; j++) {
           app.select(myDocument.spreads[j]);
           alert("j: " + j);
    Windows XP is used, and here this script works in CS4 and CS5 absolutely correct -- I see what it jumps from one spread to next and shows in alert message an index of current spread.
    But in CS3 the program only calculates number of next spread but on screen I see the same layout.
    May be there is an another way to select spread?
    Thank you.
    Mikhail

    app.activeWindow.activeSpread = myDocument.spreads[j];
    app.activeWindow.zoom(ZoomOptions.FIT_SPREAD);

  • How to get image RGB/16???????? (cont)

    VRect currentRect;
    int32 progressTotal = tilesVert * tilesHoriz;
    int32 progressDone = 0;
    // process each tile in order
    currentRect.top = 0;
    currentRect.left = 0;
    currentRect.bottom = tileHeight;
    currentRect.right = tileWidth;
    // don't go past the document bounds
    if (currentRect.bottom > docHeight)
    currentRect.bottom = docHeight;
    if (currentRect.right > docWidth)
    currentRect.right = docWidth;
    pixelMemoryDesc.rowBits = (currentRect.right - currentRect.left) *
    readChannelDesc->depth;
    // read
    while(readChannelDesc != NULL)
    bigError = sPSChannelProcs->ReadPixelsFromLevel(
    readChannelDesc->port, 0, &currentRect, &pixelMemoryDesc);
    if (bigError)
    error = filterBadParameters;
    throw(this);
    unsigned char *imageData;// for image RGB/8, with RGB/16 is unsigned short
    long temp = tileHeight * tileWidth * readChannelDesc->depth/8;
    imageData = new unsigned char[temp];// for image RGB/8, with RGB/16 is unsigned short
    memcpy(imageData, pixelMemoryDesc.data, temp);
    FILE *file;
    file = fopen("C:\\abc.txt", "ab");
    if(file == NULL)
    return;
    fwrite(imageData, sizeof(unsigned char), temp, file);// for image RGB/8, with RGB/16 is unsigned short
    fclose(file);
    readChannelDesc = readChannelDesc->next;
    return;
    ////end of customizing/////
    - then we use a project to read "abc.txt" to get image:
    ////////// function of button that is clicked, the image is shown
    void CPixelDlg::OnBtnSetPixel()
    // TODO: Add your control notification handler code here
    // POINT point;
    unsigned char*memblock;// for image RGB/8, with RGB/16 is unsigned short
    memblock = new unsigned char[HEIGH * WIDTH *3];// HEIGH , WIDTH is assigned by hard code// for image RGB/8, with RGB/16 is unsigned short
    FILE *file;
    file = fopen("C:\\abc.txt", "rb");
    if( file == NULL)
    return;
    else
    fread(memblock, sizeof(unsigned char), HEIGH * WIDTH *3, file);// for image RGB/8, with RGB/16 is unsigned short
    fclose(file);
    CClientDC dc(this);
    int i = 0;
    int j=0;
    int k = 0;
    for( i = 0; i < WIDTH; i++)
    for( j = 0; j < HEIGH; j++)
    if (k>WIDTH*HEIGH*3-3)
    break;
    dc.SetPixel(j, i, RGB(memblock[k],memblock[k+WIDTH*HEIGH],memblock[k+2*WIDTH*HEIGH]));
    k+=1;
    2. that code is ok for Image RGB/8. But with image RGB/16, now we don't know how Photoshop stores image data, and how to get image data to show???
    Please help me?
    Thanks,

    Use ResultSet.getBinaryStream()

  • How to get open filename in Reader

    Hello,
    I am looking for a way to get the filename of the open document in Acrobat Reader window from a C# application I am working on.
    I can't find a way to do it... I am so desperate I am thinking on create a plug in or something for Acrobat Reader so I will be able to get the information from the plugin...
    Any help/ideas on how to do it are welcome.
    Thanks

    There is no approved/supported way to do so, other than the use of a custom plugin for Reader (which will require a Reader Integration License).

  • How to get the filename of the active jsp page?

    how can i get the filename of the active jsp page?

    You could register the JSP [ages in the web.xml and then use the ServletConfig.getServletName.
    You could use the JspContex.getServletName which will return the registered name or the name of the servlet class.
    You could programmatically add a page context attribute that holds the jsp page name                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Already connected with DB content. how to get the filename???

    Hi, i solved my problem changing the server.xml, so now i can connect OK to Oracle Content Database, using the last code from OTN.
    This BPEL Process starts when the user copies a file into a folder in content db..and i need to know that filename.
    Anyone knows how to get that file name after i am connected???
    The code i am using and works to connect is this:
    try
    oracle.ifs.fdk.RemoteLoginManagerServiceLocator rlmsl =
    new oracle.ifs.fdk.RemoteLoginManagerServiceLocator();
    rlmsl.setMaintainSession(true);
    // initialize the RemoteLoginManager
    oracle.ifs.fdk.RemoteLoginManager s_RLM =
    rlmsl.getRemoteLoginManager(new java.net.URL("https://contentdev.nblenergy.com/content" + "/ws/RemoteLoginManager"));
    // establish a session
    oracle.ifs.fdk.NamedValue[] properties= s_RLM.login("kofax","xxxxxxxxxx", null, null);
    addAuditTrailEntry("properties",properties);
    catch(Throwable ex)
    {addAuditTrailEntry("Others",ex);                               
           ex.printStackTrace();                         
          }

    Did you every find how to accomplish this?
    Thanks,
    Steve

  • How to get the Page Number in CS3 with VB?

    Hi, Everybody
    I use the Visual Basic to read the words and their page number where the Words are at. I want to do it according to Story. Some TextFrame of the Story waw placed in other pages: How can I get the Page number according to the Word that is selected?
    For myStoryCounter = 1 to Document.Stories.Count
    Set myStory = Document.Stories.Item(myStoryCounter)
    For myWordCounter = 1 to myStory.Words.Count
    Set myWord = myStory.Words.Item(myWordCounter)
    myWordContents = myWord.Contents
    Rem ** How to Get the Page Number according to the Word ***
    Next
    Next

    > But I don't understand why Item(1) are set.
    because Word can have more than one parent TextFrame - when split across TextFrames
    only Character have one ParentTextFrame accessed also by ParentTextFrames.Item(1)
    > why Story.TextFrames.Count alway is 0, Is it bug?
    no - it's not bug
    in older IDs - Story.TextFrames collection refer to all TextFrames as containers for Story text
    but in CS3 - collection Story.TextFrames contain all TextFrames inserted as InLine/Anchored objects - same like Story.Rectangles or Story.Ovals
    in CS3 - when you want to refer to TextFrames as containers for Story text - you need to use Story.TextContainers - because now you can link TextFrame and Text-On-Path as Story - Text-On-Path isn't TextFrame
    robin
    www.adobescripts.com

  • How to get image properties in PDF using javascript or plug ins

    Hi
    How to get the image(all the images) properties in PDF using javascript or suggest plug ins
    Thanks in Advance

    HI,
    In the PDF Edit API's ( as has already been suggested) there is the PDEImage and using this you should be able to find out everything you need to know about any image in a PDF file.
    I would recommend starting with PDEImageGetAttrs
    Hope this helps
    Malcolm

  • How to get image properties in PDF using javascript

    Hi
    How to get the image(all the images) properties in PDF using javascript?
    Thanks in Advance

    Hi
    Thanks for your quick response. Any recommended plug ins
    Thanks in advance

  • How to get the filename when parsing a file with d3l

    All
    After some time have experience with interconnect, IStudio I need the following info. Is it possible to get the filename when parsing a flat file using a d3l? This is needed because we need to store the filename together with the data into the database.
    Any examples or directions to some documents are welcome.
    Regards
    Olivier De Groef

    has anyone some info on this

  • How to get images dynamically from database without file paths in the table field

    I have a MS-Access database. I am working with ASP.NET. In the database there is product table in which I have "CodeNo" as a field which is a text field, and the product codes like "SM-R-2035". I also have another field "Image" which is also a text field and which have a file path in it corresponding to the particular product Image (e.g. Images\Products\SM-R-2035.jpg). So far every thing is ok. I have to update this site very frequently and lots of images are added each and every time. Its a tedious work to type the paths and file name every time and it also take a lot of time.
    What I am asking is : Is it possible to get images from a specific folder at runtime which is referenced by the "code no" itself and not the file path from the database. (Say at run time the "code no" is referenced from the database and the corresponding image is loaded dynamically from the specified folder). In other word I want to avoid the tedious work of typing.
    Can any one help with this issue. Any other simple suggestions are welcome.

    All you need to do is simple concatenation to obtain the path for the image file.  You didn't mention whether you are using VB.Net, C# or some other language to do your coding.
    If the code in your database is SM-R-2035, the file name is SM-R-2035.jpg and the path to the images foilder is Images\Products\SM-R-2035.jpg, Conceptually here is what you need to do:
    dim code_var
    dim path_var
    code_var = the code you obtain from your relevant field in the database
    path_var = "Images\Products\" & code_var & ".jpg"
    Now path_var is what you would call to obtain the image from your images folder.

  • How to get Image size?

    Hello,
    I need help for getting Image size, when i am using JAI.
    for example:
    RenderedImage img = JAI.create("url", url);
    If you could help me than please.
    Thanks
    bye
    Jarrar.

    img.getHeight();
    img.getWidth();

  • How to get image size in bytes

    i have to get image size in bytes and accessing image from the a folder
    Thanks in advance

    If it's going to be accessed as a file on the filesystem, you can use java.io.File.length() to get the size in bytes.
    In other situations...it depends on what you're doing.

Maybe you are looking for