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 Ian Rowlands <ia...@viridian.com.au> on 2002/09/02 04:26:32 UTC
Problems rendering JPEG images when converting to PDF
Has anybody had problems when, producing a PDF document with embedded
JPEG images, the images are shown as completely black? This only happens
when using PDF at the output style - if I use the built-in viewer (AWT
viewer), the images appear exactly as I expect them to. Is it likely to
be a problem with FOP or the actual images themselves?
Any help would be appreciated.
Thanks,
Ian
RE: Problems rendering JPEG images when converting to PDF
Posted by Roland Neilands <rn...@pulsemining.com.au>.
Problems rendering JPEG images when converting to PDFIan,
They work fine for me, but I tested some cases quickly & there do seem to be
some bugs where the image is bigger than the allocated space (or just too
big):
Height & width on a block container don't cause scaling by themselves. You
may get problems with images which exceed this size.
.bmp: [ERROR] java.lang.ArrayIndexOutOfBoundsException
.jpg: blank
<fo:block-container height="3cm" width="2.5cm">
<fo:external-graphic height="3cm" width="2.5cm"
src="file:///images/{$logo}"/>
Specify height & width on fo:external-graphic or long axis only & it scales
the image to fit. Specifying the short axis only scales in proportion as
expected but if this causes the long axis to exceed the block size there is
different behaviour:
JPG: blank
Check it out a bit further & raise a bug if there isn't one already.
This wasn't very thorough, I hope it helps,
Roland.
-----Original Message-----
From: Ian Rowlands [mailto:ianr@viridian.com.au]
Sent: Monday, 2 September 2002 12:27 PM
To: fop-user@xml.apache.org
Subject: Problems rendering JPEG images when converting to PDF
Has anybody had problems when, producing a PDF document with embedded JPEG
images, the images are shown as completely black? This only happens when
using PDF at the output style - if I use the built-in viewer (AWT viewer),
the images appear exactly as I expect them to. Is it likely to be a problem
with FOP or the actual images themselves?
Any help would be appreciated.
Thanks,
Ian