25 Replies Latest reply: Apr 17, 2013 8:33 AM by tlotzer RSS

    Extract pasted InDesign images?

    cyanisthecolour Community Member

      I've received an InDesign package that has about 60 images in it, a mixture of vector (.ai and.pdf) and raster.


      In the links panel, only about 8 of the images show up. These are also the only ones in the links folder.


      This leads me to believe that the others were somehow pasted into the InDesign file.


      I've contacted the creator, who has very limited experience of InDesign and he insists that he put them all in the same way, although I am suspicious.


      Is there a way to verify if they have been pasted or to extract the files from it.


      Extra information:

      The suspected pasted links don't show up at all in the links panel, not even as embedded files.

      The file will export to a pdf and the vectors still look sharp at 6400% in Acrobat.

      I am sending this job to a printers as part of a book package and am worried about preflight.

      When I right click on one of the offending images, the options that would normally be there on a correctly linked image such as Edit Original and "Graphic" are missing



      I would really appreciate any help. Thanks

        • 1. Re: Extract pasted InDesign images?
          Eugene Tyson CommunityMVP

          I'm sure there's probably a script out there somewhere to do this from directly in InDesign.

           

          What I've done in the past is to make a PDF and choose no compression of downsizing of the images at all.

           

          Similiar to this technique http://www.deke.com/content/extracting-image-files-indesign-sort-when-you-dont-have-origin als

          • 2. Re: Extract pasted InDesign images?
            P Spier CommunityMVP

            Pasted rasters would show in the layers panel as "pasted graphic" I beleive, but I'm not sure about vectors that come in as editable paths, but they would not be a problem as they remain editable objects as if they were drawn directly in ID. Are you seeing a problem with any of the rasters in output?

            • 3. Re: Extract pasted InDesign images?
              rob day CommunityMVP

              You might find this thread useful:

               

              http://forums.adobe.com/message/4343707#4343707

               

              Pasted objects don't show in the Links panel, but the pasted content (PDF) can be extracted. If you are using OSX the script I posted in the thread extracts the pasted object, saves it to a chosen folder and links it back to the document.

               

              http://www.zenodesign.com/forum/LinkPasted.zip

               

              It's only useful if you need to edit the pasted content.

              • 4. Re: Extract pasted InDesign images?
                cyanisthecolour Community Member

                @Rob Day

                I am using CS6 on Windows so that script won't work for me unfortunately.

                 

                @Eugene Tyson I need to keep the images as vectors if possible because there are a lot of technical drawings, with lineweights that need to be maintained.

                 

                @ Peter Spier A lot of the vector stuff is pdfs which have been made in AutoCad, so they are not editable in ID.

                 

                As you can see from this screen shot , there is nothing listed in the links panel at all even though there are many pages, filled with imagesCapture.JPG

                 

                Can anyone even speculate as to how the images go in there so I can explain to the creator why I have a problem?

                 

                Thanks again for the help

                • 5. Re: Extract pasted InDesign images?
                  rob day CommunityMVP

                  Can anyone even speculate as to how the images go in there so I can explain to the creator why I have a problem?

                   

                  They were pasted. The good news is pasting keeps all of the data, so unless you need to edit there's not a problem.

                  • 6. Re: Extract pasted InDesign images?
                    P Spier CommunityMVP

                    What do you see in the layers panel when you select one of these? Is each one a full page, or are they inidividual objects?

                    • 7. Re: Extract pasted InDesign images?
                      Eugene Tyson CommunityMVP

                      cyanisthecolour wrote:

                       

                       

                      @Eugene Tyson I need to keep the images as vectors if possible because there are a lot of technical drawings, with lineweights that need to be maintained.

                       

                       

                      You can - you could copy them directly back to illustrator - a very manual way.

                       

                      Or in the PDF you can choose in the Preferences what program is used for Edit Objects.

                       

                      You can then use the Acrobat Tools to go to Edit Object and open the file in Illustrator - you would need to resave the image and relink it back to InDesign though.

                       

                      A very manual way of doing it - but it's possible.

                      • 8. Re: Extract pasted InDesign images?
                        Eugene Tyson CommunityMVP

                        Eugene Tyson wrote:

                         

                        cyanisthecolour wrote:

                         

                         

                        @Eugene Tyson I need to keep the images as vectors if possible because there are a lot of technical drawings, with lineweights that need to be maintained.

                         

                         

                        Or in the PDF you can choose in the Preferences what program is used for Edit Objects.

                         

                        You can then use the Acrobat Tools to go to Edit Object and open the file in Illustrator - you would need to resave the image and relink it back to InDesign though.

                         

                        A very manual way of doing it - but it's possible.

                         

                        If you're doing it this way complex illustrator objects might have unwanted clipping and compound masks. I'd be very careful doing it this way.

                         

                        Similarly, with copying and pasting back and forth between InDesign and Illustrator.

                        • 9. Re: Extract pasted InDesign images?
                          rob day CommunityMVP

                          In OSX I can cut and paste objects from Illustrator to ID (the pasted items don't show in the Links panel). If I save the ID page as a PDF/x, I can open that PDF in Illustrator, edit, save and place back into ID. But it would be a waste of time if I didn't need to edit.

                          • 10. Re: Extract pasted InDesign images?
                            P Spier CommunityMVP

                            It wasn't clear from your original post that you actually need to edit these images. My impression was that you were worried about the quality of the output and making it through preflight.

                             

                            So far I haven't seen anything that leads me to think there will be an output problem, if that really is your concern. No, the file construction was far from optimal, but for the moment I see not fatal mistakes.

                            • 11. Re: Extract pasted InDesign images?
                              rob day CommunityMVP

                              I just noticed in AcrobatX when you have a document open, you can create a PDF of the current clipboard item—Create>PDF From Clipboard (which is how my script works). The clipboard can be an object copied from InDesign, i.e. a frame with a vector or the vector itself.

                              • 12. Re: Extract pasted InDesign images?
                                cyanisthecolour Community Member

                                Peter Spier wrote:

                                 

                                What do you see in the layers panel when you select one of these? Is each one a full page, or are they inidividual objects?

                                Nothing comes up in the layers panel when I click an image, as per this screen capture of another page in the document.Capture01.JPG

                                Because the submission guidelines issued from my end were totally ignored, these pages are mainly made from a1 presentation boards, printed to pdf. They have been reduced and laid out again in ID.

                                 

                                 

                                Another odd thing is that when I right-click on an an image, I don't get the image context menu. Can I take it that this is just because the content has been copied and pasted in?Capture02.jpg

                                 

                                Could the pasting of all those files be causing the pdf "out of memory" errors I've been experiencing with these files?

                                I have 16GB of RAM on this machine

                                • 13. Re: Extract pasted InDesign images?
                                  P Spier CommunityMVP

                                  You need to open the layers panel in order to see something. You may also need to click the arrow next to a layer name to expand it.

                                   

                                  I think we've already established these are pasted objects.

                                  • 14. Re: Extract pasted InDesign images?
                                    rob day CommunityMVP

                                    Could the pasting of all those files be causing the pdf "out of memory" errors I've been experiencing with these files?

                                     

                                    I think so. The real downside of pasting is the object becomes part of the file—paste 20, 50mb objects and your ID file will be around a gigabyte

                                    • 15. Re: Extract pasted InDesign images?
                                      cyanisthecolour Community Member


                                      Peter Spier wrote:

                                       

                                      You need to open the layers panel in order to see something. You may also need to click the arrow next to a layer name to expand it.

                                       

                                      I think we've already established these are pasted objects.

                                      Sorry Peter, if I expand the Layers panel, I get a list of objects <pasted graphic>, so yes.

                                      • 16. Re: Extract pasted InDesign images?
                                        cyanisthecolour Community Member

                                        Thanks a lot for your help guys, I (and my hairline) really appreciate it.

                                         

                                        So I guess the million dollar question now it, is there any automated way to get the pasted graphics back to links without pasting each one in Acrobat/Illustrator to cure the ex

                                        • 17. Re: Extract pasted InDesign images?
                                          P Spier CommunityMVP

                                          That's 100% confirmation.

                                           

                                          It could certainly be causing performance problems. You haven't said yet if you need to edit any of these, though....

                                          • 18. Re: Extract pasted InDesign images?
                                            P Spier CommunityMVP

                                            cyanisthecolour wrote:

                                             

                                             

                                            So I guess the million dollar question now it, is there any automated way to get the pasted graphics back to links without pasting each one in Acrobat/Illustrator to cure the ex

                                            Rob's script works on OSX, but it might be possible to do something similar in JavaScript (I'm not a scripter, and I don't know if JS is able to invoke Illy from ID). But as I think we've been trying to make clear, unless you have need to edit one or all of these graphics it probably is not worth the effort. Slap your colleague's wrist, tell them never to paste again, and move on.

                                            • 19. Re: Extract pasted InDesign images?
                                              cyanisthecolour Community Member

                                              Yep, that's clear, I will need to edit some of them. I can do so using the advice you have already given.

                                               

                                              I am just concerned about the export failing due out of memory errors now.

                                              • 20. Re: Extract pasted InDesign images?
                                                P Spier CommunityMVP

                                                If it won't export all at once you can try esporting in chunks, then combine them into a single PDF in Acrobat.

                                                • 21. Re: Extract pasted InDesign images?
                                                  cyanisthecolour Community Member

                                                  Ok, will do. What was due to be a small simple job has turned into a very long tedious one.

                                                   

                                                   

                                                  Thanks again for all your help. I couldn't have figured it out without you guys.

                                                  • 22. Re: Extract pasted InDesign images?
                                                    rob day CommunityMVP

                                                    You could try posting my script in the scripting forum and see if you can get a JavaScript translation. The script doesn't open Illustrator, it extracts the pasted object as a PDF via the clipboard.

                                                     

                                                     

                                                     

                                                     

                                                    tell application "Adobe InDesign CS6"

                                                        set myFolder to (choose folder with prompt "Please select the folder you want to save your PDF pages in") as string

                                                        set myDocument to active document

                                                        set pastedimages to all page items of every page item of myDocument

                                                        set imagePaths to {}

                                                        set copiedimages to {}

                                                       

                                                        repeat with i from 1 to number of items in pastedimages

                                                            set myLink to item 1 of item i of pastedimages

                                                            --pasted files have a nothing link

                                                            if item link of myLink is nothing then

                                                                --set myimage to item i of pastedimages

                                                                select myLink

                                                                set myname to id of myLink

                                                                set hs to horizontal scale of myLink

                                                                set vs to vertical scale of myLink

                                                                set horizontal scale of myLink to 100

                                                                set vertical scale of myLink to 100

                                                                copy

                                                                set horizontal scale of myLink to hs

                                                                set vertical scale of myLink to vs

                                                                tell application "Finder"

                                                                    my saveImage(myFolder, myname)

                                                                end tell

                                                                --save the paths and images as lists

                                                                set end of imagePaths to myFolder & myname & ".pdf"

                                                                set end of copiedimages to myLink

                                                            end if

                                                        end repeat

                                                       

                                                        --link the saved files

                                                        repeat with j from 1 to number of items in imagePaths

                                                            set itemlink to item j of imagePaths

                                                            place alias itemlink on item j of copiedimages

                                                        end repeat

                                                       

                                                    end tell

                                                     

                                                    --writes clipboard to disk

                                                    --save folder, image name

                                                    on saveImage(theFolder, filename)

                                                        --the save path

                                                        set myPath to theFolder & filename & ".pdf"

                                                        try

                                                            set myFile to (open for access myPath with write permission)

                                                            set eof myFile to 0

                                                            write (the clipboard as «class PDF ») to myFile -- as whatever

                                                            close access myFile

                                                            return (POSIX path of myPath)

                                                        on error

                                                            try

                                                                close access myFile

                                                            end try

                                                            return ""

                                                        end try

                                                    end saveImage

                                                    • 23. Re: Extract pasted InDesign images?
                                                      cyanisthecolour Community Member

                                                      Hi, if anybody else finds this page looking for a windows solution, I have since found this http://www.kahrel.plus.com/indesign/unembed_images.html

                                                       

                                                      I hope it helps.

                                                       

                                                      Thanks again guys for all your help

                                                      • 24. Re: Extract pasted InDesign images?
                                                        tlotzer Community Member

                                                        Export as pdf, no downsamplng, no compression. Open each pdf page in Illustrator. Run Scoop ($25) from http://worker72a.com/pages/SCP.html. It will extract selected or all images (also collects fonts if needed). These can be edited, resaved, relinked using Illustrator's rotation and scale to match. Or be used back in the Indesign doc.

                                                        • 25. Re: Extract pasted InDesign images?
                                                          tlotzer Community Member

                                                          In the appleScript from [22. Rob Day],

                                                          I get AppleScript Error Number -1728, Error String: Can't get item 1 of {}.