Comment 11 for bug 840625

Revision history for this message
Alvin Penner (apenner) wrote : Re: inkscape pdf import problems

upside-down image confirmed on Windows XP, using file induction_equivalent.pdf. The problem appears to be related to the structure of the svg file, which can have different forms, depending on the original pdf file.

when Inkscape generates a pdf file, and when you re-import this back into Inkscape, the image will be in a <image> tag which will have an inverting transform element in it as follows:

<image
             width="1"
             height="1"
             transform="matrix(1,0,0,-1,0,1)"
             xlink:href="data:image/png;base64,iVBORw0KGg
             ... JRU5ErkJggg=="
             id="image22" />

the file induction_equivalent.pdf leads to a significantly different structure in Inkscape: the <image> tag is not in the main body of the svg file, it is in the <defs> section, and it is embedded inside a <pattern> tag, and there is no transform element to invert the image. The transform element should probably be present.