How to request - Updating an embedded image in a PDF using Actions but not all actions are recorded

i am trying to create an Action in CS3 but some of my actions are not been recorded.
What i want to do is run the Batch option on a folder with a 1,000 PDFs in it. The PDFs
(which were created in Illustrator CS3) consist of a single page with a single embedded
image at the foot of the page. I am trying to update that embedded image.
The Actions i am trying to record are...
1) Select the single image in the Links palette.
2) Choose the "Relink.." option in the drop down menu of the Links palette.
3) Navigate to the new image and select "Place".
4) Save and close document.
But the first two actions are not been recorded.
How do i get around this problem ?
Note: From trying this manually the new image seems to take on the horizontal and
vertical scaling of the previous image which is what i want. But if i am going to have to
do a script then that is a factor that may have to be incorporated into the script.
Any help appreciated.

Give this a trial… It does a save as which is much safer than overwriting… At least you still have your originals should I get something wrong…? I did test but only with 3 files…
#target illustrator
function replaceImage() {
          var i, doc, fileList, inFolder, outFolder, opts, pic, rep, rip, saveFile, uIL;
          inFolder = Folder.selectDialog( 'Please choose your Folder of AI PDFs…' );
          outFolder = Folder.selectDialog( 'Please choose a Folder to save AI PDFs in…' );
          pic = File.openDialog( 'Please choose your replacement Image…' );
          if ( inFolder != null && outFolder  != null && pic != null ) {
                    fileList = inFolder.getFiles( /\.pdf$/i );
                    if ( fileList.length > 0 ) {
                              uIL = app.userInteractionLevel;
                              app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
                              for ( i = 0; i < fileList.length; i++ ) {
                                        doc = app.open( fileList[i] );
                                        rip = doc.rasterItems[0].position;
                                        rep = doc.placedItems.add();
                                        rep.file = pic;
                                        rep.move( doc.rasterItems[0], ElementPlacement.PLACEBEFORE )
                                        rep.position = rip;
                                        rep.resize( 31.414, 31.414, true, true, true, true, 100, Transformation.TOPLEFT );
                                        doc.rasterItems[0].remove();
                                        rep.embed();
                                        opts = new PDFSaveOptions();
                                        opts.pDFPreset = '[Illustrator Default]';
                                        saveFile = File( outFolder + '/' + doc.name );
                                        doc.saveAs( saveFile, opts );
                                        doc.close( SaveOptions.DONOTSAVECHANGES );
                              app.userInteractionLevel = uIL;
                    } else {
                              alert( 'This Folder contained NO Illustrator PDF files?' );
replaceImage();

Similar Messages

  • Update an embedded image in a PDF with Actions

    i am trying to create an Action in CS3 but some of my actions are not been recorded.
    What i want to do is run the Batch option on a folder with a 1,000 PDFs in it. The PDFs
    (which were created in Illustrator CS3) consist of a single page with a single embedded
    image at the foot of the page. I am trying to update that embedded image.
    The Actions i am trying to record are...
    1) Select the single image in the Links palette.
    2) Choose the "Relink.." option in the drop down menu of the Links palette.
    3) Navigate to the new image and select "Place".
    4) Save and close document.
    But the first two actions are not been recorded.
    How do i get around this problem ?
    Note: From trying this manually the new image seems to take on the horizontal and vertical  
    scaling of the previous image which is what i want, so that doesn't need to be a part of
    any solution.

    That will probably require a script, so ask in the pertinent forum.
    Mylenium

  • My iphone 3G has worked fine via bluetooth with my BMS 3 series (57 plate) until I updated to V.5.0.1 software and now only some but not all contacts are transferred - any ideas?

    My iphone 3G has worked fine via bluetooth with my BMS 3 series (57 plate) until I updated to V.5.0.1 software and now only some but not all contacts are transferred and available - any ideas?

    Rodger,
    Thank you for your gracious welcome . . .
    and thank you for your swift response . . .
    and thank you for your information (and encouragement!).
    Yes, I read that too, but searched in vain for the specifity of, say, your direction:
    "Go ahead and update to 8.0.2, as it contains the 8.0.1 update."
    So I shall!
    Again, many thanks.

  • Does anyone know how to make one email account alarm you when you have mail but not all of your accounts?

    I have a specific email account that I would like to alert me when an email has come in but I don't want all my accounts to alram me.  Does anyone know how to do this?  I can only seem to find how to alert EVERY account.

    There is no way to do that on a non-jailbroken iPhone.

  • I ned help i need to start fresh new firefox dont know how to remove old profiles its totally ruined i can use it but not like suppose to thank you for your time

    there are so many things not working right i really do not know where to start
    if someone counld assist me PERSONALLY hands on that would be very much appreciated
    i just need to delete ALL old files the whole firefox
    and i need someone willing to have patients and understanding that will help me thats all i can say
    ive used firefox on and off 4 ever
    i like it over IE like 101% chrome is okay but not y choice
    firefox in my 46 year old eyes RULES!
    so if someone is willing to help me id love that
    im thinking ive deleted some file of very great importance
    PLUS i hate the Flash & Jave & Chrome errors that pop up
    PLUS
    statse.webtrendslive.com : server does not support RFC 5746, see CVE-2009-3555
    support.mozilla.com : server does not support RFC 5746, see CVE-2009-3555
    code I like this
    then there is on my space & other sites java is () Null or void
    im not a computer whiz
    but im not DUMB either
    i cant edit profiles and codes
    if i could id be one volunteer on here to help anyone N everyone i could
    on Superpoke pets
    it no longer allws me to go from inventory popular
    to ether stock left
    or lower to higher cost
    or higher to lower cost
    just an example
    this is frustrating to me ALL of it
    im ready to just throw my hans up n say 4 get the net
    please help me someone
    anyone
    thank you for your time in this matter
    and have a wonderful rest of your weekend

    Managing Profiles
    http://support.mozilla.com/en-US/kb/Managing-profiles

  • How do I hide the file names/path names of embedded images in a PDF document?

    I created a PDF document from a Word document, and the problem is that the PDF document shows the file names and path names for all of the embedded images in the PDF document. I don't want that information displayed. I don't want to send the PDF out to clients and have them read the names I've assigned to those images, plus it looks messy. And I've lost many of the original image files so they only exist in the Word document, thus I can't go back and rename them. I searched the internet for an answer but I couldn't find one anywhere.

    When you create a tagged (accessible) PDF file from Word, placed bitmap images will use their filename as the "ALT text" if you don't define something else for the text to say, because an image without any ALT text is a failure against the accessibility standards. You can't change that default action, so you should put your own meaningful text into the ALT field for each image - which is what you should be doing anyway if the PDF is standards-compliant.
    You can can set the text in Word, but it depends on your version as to where the dialogs are - Google for it - or you can change/delete it in Acrobat using the tags navigation pane on the left side of the window (right-click the sidebar if it's not visible). Drill down through the tags structure to find the "<Figure>" tag you want to change, right-click and choose Properties, then put something in the "Alternative text" field. This process isn't something you can easily automate, but if you don't need tags at all, you can save without tags (or print to PDF).

  • How can I update my iPad 3 to iOS 6 using iTunes

    How can I update my iPad 3 to iOS 6 using iTunes

    Welcome to the Apple Support Communities
    See "Update your device using iTunes" > http://support.apple.com/kb/HT4623?viewlocale=en_US&locale=en_US

  • I update my IPhone4 to IOS6 from IOS4.3.3. My all songs are missing in the Iphone4. How to get those songs into my Iphone from ITunes. Even after sync also not coming to IPhone.

    I update my IPhone4 to IOS6 from IOS4.3.3. My all songs are missing in the Iphone4. How to get those songs into my Iphone from ITunes. Even after sync also not coming to IPhone.

    The iphone is not  storage/backup device.
    The sync is one way - computer to iphone.
    The only exception is itunes purchases.  File>Devices>Transfer Purchases
    You should copy everything from your old computer, or your backup copy of your old computer, to your new one.

  • I updated my iPod Touch to 6.0.1. after much prompting. Now my music is gone! (along with apps, photos and podcasts). After syncing a bunch of times some of it came back, but not all of it. How odd is that? How can I get my music back on it??

    I updated my iPod Touch to 6.0.1. -- after much prompting from iTunes. Now my music is GONE (along with apps, photos and podcasts). After syncing a bunch of times some of it came back, but not all of it. How odd is that? How can I get my music back?? I'm really bummed! Everything shows in iTunes, but it's not synching right. So glad I updated. NOT.

    Go to iTunea>Preferences>Devices and see if there is a backupright at the time you did the update. Then try restoring from that backup. If the apps are in your iTunes library, any app data will be restored to the iPod.
    When restoring from an iOS 4 (or later) backup, if the device had a passcode set, iTunes will ask if you want to set a passcode (and remind you that you had protected your device with a passcode). iTunes will not ask you to set a passcode when restoring from iOS 3.x and prior backups.
    Therefore, remembe the passcode that you enter this time.
    It appears that if you restore from a backup, that backup is not subseqyently overwritten by the next backup.

  • How to invoke alt-text for images in a PDF file by Automation

    Hi,
    Can any one help me?
    How to invoke Alt-text for Images in a PDF file using script?
    Thanks for looking into this.
    Regards,
    Sudhakar

    What do you mean "invoke" alt-text?  If Alt-text is there, then it will be presented to a screen reader.

  • How do I update and sync my phone on  a new computer without losing all my stuff?

    How do I update and sync my phone on  a new computer without losing all my stuff?

    You need to move all your data from the original computer over to the new computer first. 

  • 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 do I update podcasts on windows computer?It used to do it automatically each time I tunes was opened

    how do i update podcasts on my computer?  they used to put current versions each time i opened I tunes

    You don't update itunes on your phone, you update itunes on your computer.

  • HT4623 How should I update IOS 7??? Am using IOS 7 beta ??

    HOw can I update IOS 7 ??? Am using beta version

    What happens when you attempt to upgrade?
    What have you tried, such restore from iTunes?
    Allan

Maybe you are looking for