Skip navigation
cyanisthecolour
Currently Being Moderated

Extract pasted InDesign images?

Sep 3, 2012 2:34 AM

Tags: #indesign #links #paste #preflight

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

 
Replies
  • Currently Being Moderated
    Sep 3, 2012 3:42 AM   in reply to cyanisthecolour

    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-originals

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 3, 2012 5:08 AM   in reply to cyanisthecolour

    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?

     
    |
    Mark as:
  • Rob Day
    3,122 posts
    Oct 16, 2007
    Currently Being Moderated
    Sep 3, 2012 5:53 AM   in reply to cyanisthecolour

    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.

     
    |
    Mark as:
  • Rob Day
    3,122 posts
    Oct 16, 2007
    Currently Being Moderated
    Sep 3, 2012 7:21 AM   in reply to cyanisthecolour

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 3, 2012 7:21 AM   in reply to cyanisthecolour

    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?

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 3, 2012 7:31 AM   in reply to cyanisthecolour

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 3, 2012 7:34 AM   in reply to Eugene Tyson

    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.

     
    |
    Mark as:
  • Rob Day
    3,122 posts
    Oct 16, 2007
    Currently Being Moderated
    Sep 3, 2012 7:36 AM   in reply to cyanisthecolour

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 3, 2012 7:38 AM   in reply to cyanisthecolour

    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.

     
    |
    Mark as:
  • Rob Day
    3,122 posts
    Oct 16, 2007
    Currently Being Moderated
    Sep 3, 2012 7:50 AM   in reply to Eugene Tyson

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 3, 2012 7:59 AM   in reply to cyanisthecolour

    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.

     
    |
    Mark as:
  • Rob Day
    3,122 posts
    Oct 16, 2007
    Currently Being Moderated
    Sep 3, 2012 8:04 AM   in reply to cyanisthecolour

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 3, 2012 8:11 AM   in reply to cyanisthecolour

    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....

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 3, 2012 8:15 AM   in reply to cyanisthecolour

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Sep 3, 2012 8:28 AM   in reply to cyanisthecolour

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

     
    |
    Mark as:
  • Rob Day
    3,122 posts
    Oct 16, 2007
    Currently Being Moderated
    Sep 3, 2012 8:36 AM   in reply to cyanisthecolour

    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

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2013 8:21 AM   in reply to cyanisthecolour

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 17, 2013 8:33 AM   in reply to Rob Day

    In the appleScript from [22. Rob Day],

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

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points