Tagging every image of a document.

I need to tag every images of a document with a XMLTag named "img".
How can i do it with javascript?
Can anyone help me?

i just solved my problem...
var allGraphics = app.activeDocument.allGraphics;
numGraphics = allGraphics.length;
while(numGraphics--){
    currGraphic = allGraphics[numGraphics];
    if(currGraphic.parent.parent.constructor.name=='Character')
        currGraphic.autoTag();

Similar Messages

  • Selecting All Images in a Document over multiple pages

    Hello,
    Is there anyway to select all the images in a document, not just a spread.
    For example, if I want to apply an object style to every image.
    I can only do one page (spread) at a time
    There was a post out there that started like this, but started talking about converting to outlines, so this part was never answered.
    I was teying to find something through GREP, but nothere there either.
    Is this possible?
    thanks
    babs

    Oh bait. I like bait.
    for (a=0; a<app.activeDocument.allGraphics.length; a++)
         if (app.activeDocument.allGraphics[a].imageTypeName in {"JPEG":0, "PNG":0, "TIFF":0, "Windows Bitmap":0, "CompuServe GIF":0, "Photoshop":0})
    app.activeDocument.allGraphics[a].parent.appliedObjectStyle = app.activeDocument.objectStyles.item("test");
    //     else
    //          alert (app.activeDocument.allGraphics[a].imageTypeName);
    .. and perhaps some more raster formats -- I don't know exactly which types ID distinguishes by name. You can find the type name per image in the Info palette -- it doesn't seem to differentiate between TIF and TIFF, for example. "Photoshop" is any PSD file.
    An Illustrator file is tagged "Adobe PDF" (not weird, if you know how it works), and a placed InDesign page as "InDesign". Didn't find a real EPS quick enough to test that as well, but you could try.
    If you remove the comment slashes from the 'else' part the script will show an alert for the image types it did not change.
    All of these types are distinguished by type name only, you cannot check for a PDF only containing a single raster image, or a PSD containing vector info.

  • Missing images in Word Document

    I am having a problem with some missing images when I
    generate a Word document from RoboHelp HTML. I have seen similar
    problems in these forums and have tried the solutions without
    success. I have Word 2002 SP3. I have images in my document that
    have conditional tags applied to them. Up until now, I have not had
    any trouble with them generating in Word. I added some more images
    (using RH to import them into my doc) and I set up the conditional
    tags to print those and not the others. In some cases, the images
    are generated and in others they are not. There is no X in its
    place just a blank line. I have tried erasing the .CPD file and
    re-generating. I have tried removing and re-inserting the image.
    Also, if I generate the html web help, the images are all there. No
    problem. I have tried embedding the images and using links and get
    the same result. I have not tried to just generate the PDF because
    I need to tweak the document in Word first before generating the
    PDF to make everything look good.
    I have also uninstalled and reinstalled Robohelp. That didn't
    help either. The image properties all have none (not left or
    right). I am running out of ideas to solve this problem. Everything
    worked great before so I can't figure out what could possibly be
    wrong especially since the webhelp is fine. I also tried moving the
    project to my C drive. No change either. The project usually
    resides on a network drive.
    If anyone can help, I'd really appreciate it since I have a
    document to print for a customer ASAP! Thank you in advance.
    Evelyn

    I have been suffering with this problem of missing graphics for some time, even with RoboHelp 8. However, it now seems that I have found the answer and just in case anyone else is still having this problem I thought I would share what worked for me.
    After doing some Google searching I found the web site: http://www.gmayor.com/mail_merge_graphics.htm where the following solution was offered for problems with Mail Merge graphics:
    "If you find that on merging to a new document the resulting paths have been changed to something like: {INCLUDEPICTURE"../,./../program%20files/My Program/ProductPictures/ImageName.jpg"\*MERGEFORMATINET} and the merge does not work correctly:-
    (In Word 2003) Select Tools > Options > General > Web Options and uncheck "Update links on save""
    Whatever this has to do with anything I do not know, but it magically fixed my problem and all images are now appearing in the RoboHelp Word output.
    Cheers,
    Chris

  • Tagging an image with a callout and caption

    The document is created in MSWord 2013. It contains screen captured images along with added call-outs and a caption for each (see image #2 below). The call-outs extend outside the image border. I used the 'group' option in Word to group each of the elements together as they tend to move around the page during the editing process. The 'picture' group is formatted as 'inline with text' or 'top and bottom'. 
    In Adobe Acrobat XI Pro, I am trying to fix the tags for the figures. Although each of the elements are group in Word, they are appearing as separate elements/tags. (see image #1 below) ...the image is one Figure, the call-out is another Figure and the caption is yet another Figure. How should I handle this type of situation?  I have tried:
    1. to tag all three elements as a 'Figure'. Sometimes this works; sometimes the caption and/or the text in the call-out disappear.
    2. to tag all three elements as a 'Figure/Caption'; however, I get the same results as above...sometimes the caption and/or text in the call-out disappear.
    3. I also tagged the call-out as 'background' and then tagged the image and caption together as either 'figure' or 'figure/caption'; however, when selecting the image and caption, I must select the call-out as well because of it's proximity to the image. End result: text in call-out disappears.
    What is the proper way to tag in this situation?
    As an aside, I find the entering the ALT text in MSWord does not carry over to the PDF. I've experimented with the too. I've added the ALT text to the image on its own and to the group. I've added it to the "Title" field; however, the ALT text field in the PDF is empty. I've given up on adding this in Word and now add them directly to the tag.
    If someone can help point me in the right direction on how to fix the tag issues for images/callouts/caption, I'd be very grateful!!!!!  (BTW, using a page layout application is not an option. I must use MSWord 2013 to create my documents.)

    HI 'C' student!
    Thanks for the info. I will give the Content pane a try.
    I think my Word 2013 might have a bug.  When i enter text into either the 'title' field or the 'description' field, the text does not move over or wrap around so that i can fully see what i've entered. i wonder if this is impacting the carry-over into the pdf file?
    the company I work for does not 'officially' support this version of Word, as i am an 'early adoptor' of this version. until the rest of the company moves to this version, i'm kinda on my own. i am going to see who i can speak with to see about getting an update, though. maybe that will fix the problem.
    thanks again,

  • Images Change in Document after Saving

    Help! This problem has plagued me in both Pages and Keynote. I have designed a brochure in Pages and used "copy & paste" to place multiple pieces of clipart from another document into the brochure. Once I have everything laid out just as I'd like it, I save the document. I also export it as a PDF or WORD format so that it will be compatible for others to use. After saving and exporting, I close the program. Later when I reopen the document in order to make changes, my graphics have all been replaced by a single random image that has been used somewhere in the document. There isn't a rhyme or reason regarding which image is duplicated, but in every place in the document that had artwork, it is repeated.
    As I mentioned this happened in Keynote as well as Pages. In this instance, I was using many photos which I inserted using the media selector (rather than "copy & paste"). When I came back into my project, all the photographs had changed to a single picture. AGGHH.
    Am I just not doing something right? Or is this a flaw in the programs?

    I never got this odd behaviour.
    Most of the time, I don't use copy-paste but dag & drop which stores the picture file in the document in the original format.
    When I uses copy - paste, I always get a tiff file in the document's package.
    Yvan KOENIG (from FRANCE lundi 15 décembre 2008 15:30:30)

  • Help - Images change in document after saving

    This issue has been plaguing be for a while and is quite frustrating. When I am working on a document for a scientific poster, I iwll get everything placed how I would like, then export it to PDF (where everything looks as I intend it to), but when I reopen pages to make additional edits some of the images have been changed to be a different random image in the document. This is extremely frustrating as the placing of figures and graphs in the poser is really time intensive, and every time it happens I have to start over. Other than this issue pages is great for working on these posters, but this issue is frequent enough, and a large enough annoyance that I am thinking of not using it any more.
    There is an old discussion chain where someone was having the same issue, but it was never resolved and is now archived so I cant add to that thread.
    Any help to resolve this would be greatly appreciated. These files are quite large due to the size of the poser (about 36" x 48", and ~130mb) in case that helps.
    Thanks.

    Peter
    You need to learn some basic techniques in Pages and OSX.
    1. When you drag an image onto a page it usually comes in as a floating object with wrap set, this causes text under to move so that it runs around the object. Usually this is what you want.
    2. In your case you should create "placeholders" which are dummy images in the correct place, size and style which are replaced when you drag an image from the finder onto them.
    Make a placeholder with an imagebox containing any graphic you like, set it up the way you want it with border, color, wrap, fit etc then:
    Menu > Format > Advanced > Define as media placeholder
    3. You can print just about anything to pdf from almost any application on OSX using the Print PDF button at the bottom left of the Print dialog box.
    4. Pages has a beautiful graph tool which works in conjunction with a mini spreads sheet in the document:
    Toolbar > Charts
    5. Pages also works very well with graphs produced in Numbers
    Download and read the Pages09_UserGuide.pdf from under the Help menu.
    Also iWork '09 The Missing Manual is an excellent reference
    Peter

  • Adobe Bridge (CS6) - bulk action - JPEG Options must be OKed for every image

    Hi all-
    I created an action script for a watermark in Photoshop CS6. Then, I ran my script as a bulk action in Adobe Bridge (CS6) against my JPEGs. However, the JPEG Options dialog/window appears for every image in PS. Is there a way to have this automatically OK (and at the highest quality) so that I don't have to sit and click OK over and over?
    I am on a Mac btw.
    Thanks!

    Please help

  • The images imported to my stage turn up as blank and render every image previous to the rogue imported image as red squares that fill the perimeters of the image which then renders the publishing and scene testing features in flash useless, what can i do

    I have been working on animating a scene in flash for a few weeks and recently I have encountered a problem with importing my images on to the stage where the images I import do not turn up, however the key frame that I attempted to import the image onto shows that it is occupied by an image and every frame previous to the key frame that just imported an image that does not show turns up as a red square that fills the original perimeters of the image, there is no solution to this problem any where on the forum and the adobe technical support staff will not help me find a solution to this problem what can I do to get Flash running normally again and fix this problem?????
    Also after the first time i publish a preview after i begin using flash, flash renders the publishing and scene testing features as useless and claims that there is no HTML template found, or if the images if i import any images onto the stage that come up blank and render every image previous to that image as a red square and then try and publish a preview  flash renders the publishing and scene testing features as useless and claims that there is no HTML template found. What can I do to fix this problem??? there is no solution on the web anywhere to this problem either.

    I don't know if Flash has a memory limit of its own. The memory for your Flash file is based on the available memory on your computer.
    There is a limit on the number of frames that you can have in any given timeline. I think that it's about 15000 frames, but that's a guess. Flash does all of its work at runtime, this means that no part of your animation is pre-compiled like it is in a video file. So the more objects that you have on the stage, the more work Flash has to do. It follows that the more objects that there are to animate, the more work your processor and the video card have to do.
    Here's a list of articles on memory management that might be useful:
    Garbage collection internals for Flash Player and Adobe AIR | AdobeDeveloper Connection
    actionscript 3 - What are good memory management techniques in Flash/as3 - Stack Overflow
    AS3 Memory Management Tips

  • I copy text, paragraph styles, character styles & images from 1 document to another only text copies

    I have a few documents that have text and images that is frequently repeated through many chapters of an In Design book. (Printing, exporting etc.) I used to select all in the source document, Command + C to copy it, change to the target document, Command + V to paste it. It worked well for six months.
    About two weeks ago it stopped working (shortly after an update to In Design). I have text, paragraph styles, chacter styles and images in each document. Only the plain text copies over. This is the same for any document.
    I haven't changed Preferences in six months.
    I'm on a Mac 10.8.2, In Design CS6 version 8.0.1.
    It's driving me crazy! It's a lot of work to reformat each 2  to 10 pages after copying it in.
    Steven Hussey

    Source:
    Target:
    Here you go.
    Steve

  • Add captions to all images in a document

    Does anyone already have a script that will add captions to all the images in a document? Right now I have to select each image on each spread which doesn't feel very efficient.

    Hi Sandee!
    Would that be using CS5's automatic caption function, or just "captions in general"?
    If the latter, I s'pose it's not too hard to write a quick & dirty script to add a text frame below (above?) each image, sets its width to the image size, sets the height to a reasonable amount, optionally add an object style to it, and (for instance) copy the image file name into it so you know what you're talking about.
    If the former ... anyone else?

  • TIFF images in PDF documents

    Just looking for a short answer, no technical details needed: Is it possible to store TIFF images in PDF documents without losing information?
    Thank you in advance,
    k.

    >On my own computer it seems I only have options to save it as jpg or zip internally.
    That's correct. The PDF specification supports many more forms of
    compression. Than this.
    > Can't find any options to save it as TIFF internally.
    That's correct. A PDF image is stored as a collection of pixels NOT as
    an embedded graphic format.
    The collection of pixels may be compressed according to one of many
    compression schemes. There is JPEG (internally called DCTDecode) and
    ZIP (internally called FlateDecode). FlateDecode is completely
    lossless, so if what you are concerned about is loss of picture
    quality, this is the one to use.
    A ZIP compressed PDF is typically going to be about the same size as
    the corresponding ZIP compressed TIFF.
    Aandi Inston

  • Display thumbnail preview for images in a Document Set

    I have a Document Set with Images in it.  I would like to show a thumbnail preview of the images in the view of the files in the document library.  I added the Thumbnail Preview column but it just shows a large File Icon.

    Hi,
    According to your description, my understanding is that you want to display the picture of the images in the document set.
    I recommend to create a hyperlink type column and format URL as picture to show the images in documents set.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Copy an Image from one document to another

    Is there an easy way to copy a rectangle containing an image (not a link to an image) from one document to another?
    Thanks.
    Chris.

    I can now copy-paste text frames and linked graphics from one document to another using snippets, but embedded images still don't work.
    If I embed an image from a pdf file it works but not for jpeg images. When I open the new document (for which I placed the snippet) in InDesign, there is a frame (with a dark grey background and a diagonal cross) shown, but no contents. The place() method did not throw an exception. What am I doing wrong?
    Chris.

  • How to retrieve image from a document

    Hi
    I am a beginner to Adobe InDesign SDK (CS4) and was needing some help. Here is the sceneario
    I have a simple InDesign document with an image in it. I am trying to retrieve the image and do some proprietory actions on it.
    I am wondering if there is an InDesign API which can retrieve image on a document. What is the return value from such an API. (e.g does the API return a pointer to the image object or maybe  location of the image on the filesystem ? ). What I am trying to do is once I can get a "handle" to the returned image, I would like to  manipulate it and save it in a proprietory format.
    Any pointers on this would be highly appreciated
    thanks!
    Sam

    Hi,
    You can get the path of the linked image file and then you can manipulate this image.
    I think ILinkUtils and ILink will certainly help.
    You can also check (for better understanding) CHM->PortingGuide->Links Archtecture.
    Thanks.

  • "Compress images in pdf documents" won't work

    I created this workflow:
    1. Get selected Finder objects
    2. Compress images in pdf documents
    3. Copy Finder objects to...
    ... but it won't work, the images are not compressed. Anyone any suggestions?

    To examine this I made three pdf documents from three Pages documents (running compression during export to pdf) each containing one image: one psd, one tiff and one jpg image. Running the workflow on these pdfs, the pdfs containing the psd and the tiff files were compressed but not the pdf containing the jpg image. I then made two pdf documents exported from Indesign containing a tiff file; one pdf export compressing and downsampling the tiff image and one with no downsampling and compression. Running the workflow on these two pdfs did not further compress the already compressed pdf, but did compress the pdf containing the uncompressed image. To further optimize pdf documents already compressed on export from Indesign one has to use Acrobat, which, of course, is the most efficient and flexible tool for optimizing pdf documents.

Maybe you are looking for

  • HT1296 Events entered in my iPhone 3GS will no longer sync to my Outlook 2010 calendar - what's up?

    Some change in iOS I suppose makes it so events entered in my iPhone 3GS will no longer populate my Outlook 2010 calendar when I sync the devices through iTunes.  It used to be that events entered in each place would populate the other locationg when

  • How to reset an failed asynchron abap-process in a process-chain?

    Hi specialists, I've got a process-chain which triggers (as one of its steps) an abap-program. The program should run asychroniously, so the process-chain waits until the programm reports its ending. When the abap-program fails/crashes/dumps, then th

  • Adobe Download Assistant not installing

    I'm trying to download the CS6 trials on a MacbookPro running Mountain Lion; however on opening the AdobeDownloadAssistant.dmg it will load, then give me an error message with the following: "Sorry, an error has occurred. The application could not be

  • GLPCA with 185GB

    we have the table GLPCA with 185GB (2.5 years) the technical settings are that Data class APPL1 Size category 4 we want to move Size category 4 to Size category 9 what is the impact ?? we won performace??

  • Regarding BI in Netweaver 7

    hi what is the relationship map between BI, netweaver, ECC ? jj