You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Davide Fiorello <da...@codeflyer.com> on 2005/04/19 19:32:07 UTC

Different PDFs from the same FO contaning GIFs

I've a problem displaying GIF image in a PDF.
It's a great problem because the pdf generated its almost always different.

The difference appears in the object declaration of the PDF, as follow,
in the Length, Width and Height of the image Object, also the Stream
value is different, but i think it's a side effect.

Obvioulsy the source image are the same every time.

The xml-fo source
-----------
<fo:table-cell text-align='left'>           
    <fo:block font-family='verdana' font-size='12pt'>a 
<fo:external-graphic  width='0.58in' height='0.25in' 
src='/var/path-to-image//image.gif' /> 
    </fo:block>
</fo:table-cell>
------------

First generated PDF
---------------
6 0 obj
<</Type /XObject
/Subtype /Image
/Name /Im1
/Length 160
/Width 35
/Height 63
/BitsPerComponent 8
/ColorSpace /DeviceRGB
/Mask [0 0 0 0 0 0]
/Filter [ /ASCII85Decode /FlateDecode ]

stream
Gb"0N>7,m7$jG&HJ'gR/+0j<c1o"CFHqTM,V%M"$]f*..... (I cut the stream)
endstream
endobj
---------------

Second generated PDF
---------------
6 0 obj
<</Type /XObject
/Subtype /Image
/Name /Im1
/Length 155
/Width 37
/Height 48
/BitsPerComponent 8
/ColorSpace /DeviceRGB
/Mask [255 255 255 255 255 255]
/Filter [ /ASCII85Decode /FlateDecode ]

stream
Gb"0N5mi,r$q/Lus3_M7.$eU`3tiInYJk-@CSn_$1T!SSa.... (I cut the stream)
endstream
endobj
---------------


Thanks
Davide Fiorello





---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org