Importing PDF just shows "linked image not found"

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
Flay

Importing PDF just shows "linked image not found"

Postby Flay » Fri May 23, 2008 5:58 am

I'm trying to import a PDF into Inkscape 0.46 on WinXP. The preview image shows up in the PDF import window, but after clicking "ok" it always displays a huge "linked image not found" in the size of the PDF page (A4).

Opening the PDF with Adobe Reader 8 works correctly.

Does anybody know why this happens and how I could get the PDF to load in Inkscape?

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Importing PDF just shows "linked image not found"

Postby microUgly » Fri May 23, 2008 8:00 am

Are you able to provide a copy of the PDF so we can test it?

After opening it I would check in the XML editor to see if it reveals and issue with how the image is being loaded.

Flay

Re: Importing PDF just shows "linked image not found"

Postby Flay » Fri May 23, 2008 4:02 pm

It's a template for a design contest:

http://www.lodownmagazine.com/index.php?page=19 (-> "Download the design template here")

I also wonder how to import the included AI file correctly in Inkscape. If I use the thumbnail view for icons in WinXP, it shows me a full A4 site with 6 shoe templates. Once I import the file into Inkscape, the lower image is gone.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Importing PDF just shows "linked image not found"

Postby microUgly » Sat May 24, 2008 9:29 pm

Well, the image in the PDF is just a PNG, so this is good for you.

Inkscape seems to have problems converting the image to a data URI. A data URI is basically a way to embed a binary file (i.e. a PNG) into a text file (i.e. HTML or SVG). If you deselect the option "Embed images" when you open the file, Inkscape will not use a data URI and will instead save a copy of the image in a temporary location. The file should open fine this way, but I think there might be some corruption in the original PNG.

Anyway, because there is no vector information in the PDF, I wouldn't even bother opening it in Inkscape. Instead I would open the PDF in Acrobat Reader and copy the image out of it to work with--this process should correct the corruption (it did for me).

As for the AI file, I don't have Illustrator, but you can open AI files in Acrobat Reader and Acrobat also doesn't show the sole. The preview you see in WinXP is only an embeded thumbnail--it's possible the thumbnail is out of sync with what the actual image is. Note that the AI file contains a true vector version of the template, so this is the file I would be working with.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Importing PDF just shows "linked image not found"

Postby microUgly » Sat May 24, 2008 9:40 pm

... if you open the AI in Inkscape ungroup the drawing (you need to ungroup it twice) the other shoe template will appear.

Flay

Re: Importing PDF just shows "linked image not found"

Postby Flay » Sun May 25, 2008 5:54 am

Ah yes, for me it appeared after ungrouping 3 times. Thanks.

Now I could wonder why it is hidden when grouped, but I'm not going to do that as it's the anyway illogical Inkscape.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Importing PDF just shows "linked image not found"

Postby sas » Sun May 25, 2008 7:38 am

Flay wrote:Now I could wonder why it is hidden when grouped

It's hidden when grouped because the group is clipped to exclude it. Ungrouping loses the clipping (though it shouldn't - this is a bug).

The normal way to remove the clipping would be to use the clip release command (Object -> Clip -> Release), and then delete the black clipping rectangle.

User avatar
microUgly
Site Admin
Posts: 2985
Joined: Sat Jun 02, 2007 3:13 pm
Contact:

Re: Importing PDF just shows "linked image not found"

Postby microUgly » Sun May 25, 2008 8:36 am

sas wrote:It's hidden when grouped because the group is clipped to exclude it. Ungrouping loses the clipping (though it shouldn't - this is a bug).

I'm not sure it is a bug, at least not with Inkscape. Acrobat displayed exactly what Inkscape displayed.

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: Importing PDF just shows "linked image not found"

Postby sas » Sun May 25, 2008 5:31 pm

microUgly wrote:
sas wrote:It's hidden when grouped because the group is clipped to exclude it. Ungrouping loses the clipping (though it shouldn't - this is a bug).

I'm not sure it is a bug, at least not with Inkscape. Acrobat displayed exactly what Inkscape displayed.

Yes, I meant that it's a bug that the clipping disappears when ungrouping (ungrouping shouldn't change appearance). It's not a bug that the clipping is present to start with, since the clipping is present in the AI file too.

Maťo

ImportingPDFjust shows"linked image not found"orNotProceedAt

Postby Maťo » Sun Jun 29, 2008 5:56 pm

sas wrote:
microUgly wrote:
sas wrote: . . . loses the clipping (though it shouldn't - this is a bug).

I'm not sure it is a bug, . . .

Yes, I meant that it's a bug that the clipping . . .


Have experienced other suspicious behavior. P. D. F. import failed with error

Code: Select all

 Nepodarilo sa na\u010d\u00edta\u0165 po\u017eadovan\u00fd s\u00fabor /tmp/2008-03-07_podrobnejsie-tematicke-okruhy-2roc.pdf
.
This may be translated ( to english ) as "Cannot read *.pdf" .


Return to “Discuss Software Issues”