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 bob swanson <bo...@gmail.com> on 2013/05/13 04:50:56 UTC
One JPG Displays, the Other Does Not
I noticed this problem with a much larger document
I'm producing. I was able to trim down
to a small .fo file and two JPG images.
I can display the JPG images with many software
products, so I know they are valid. However, the
PDF file created by my short script (using
the "fop" script on a Mac OSX system),
displays only one of the images. The
other is missing. I've tried viewing the
created PDF file with Adobe Reader, and
"Preview" from the Mac. In both cases, the
second image does not appear.
What am I doing wrong?
The .fo source, the two JPG files, and
a simple execution script for the "fop"
shell script are in:
http://swansongrp.com/misc/problem.zip
(you can ignore the link reference errors, but
there are no errors from reading the JPG
files)
Thanks for your help.
Bob Swanson
Re: One JPG Displays, the Other Does Not
Posted by Pascal Sancho <ps...@gmail.com>.
Hi,
the 2nd image has following features:
dot size: 919x600 pixels
resolution: 44417x44417 DPI
true size: 0.0207x0.0135 IN²
and the content-height of the 2nd external-graphic is set to 100%,
witch means: 100% of the height of container,
the latter defaulting to 100% of the height of the content (witch is
0.0135in)
So, result is as expected.
You should fix it in one of the following ways:
- fix the image resolution (44417 is not a useful value);
- or remove content-height property,
- or specify an absolute value for the height.
2013/5/13 Roland Neilands <rn...@pulsemining.com.au>
> Bob,****
>
> ** **
>
> IIRC, you are putting a 900px file into a 25pt area. FOP should shrink it
> to fit, but I suspect it still has issues doing this with large jpgs. Other
> image types (gif etc) work better.****
>
> ** **
>
> Cheers,****
>
> Roland****
>
> ** **
>
> *From:* bob swanson [mailto:bobswansong@gmail.com]
> *Sent:* Monday, 13 May 2013 12:51 PM
> *To:* fop-users@xmlgraphics.apache.org
> *Subject:* One JPG Displays, the Other Does Not****
>
> ** **
>
> I noticed this problem with a much larger document****
>
> I'm producing. I was able to trim down****
>
> to a small .fo file and two JPG images.****
>
> ** **
>
> I can display the JPG images with many software****
>
> products, so I know they are valid. However, the****
>
> PDF file created by my short script (using****
>
> the "fop" script on a Mac OSX system),****
>
> displays only one of the images. The****
>
> other is missing. I've tried viewing the****
>
> created PDF file with Adobe Reader, and****
>
> "Preview" from the Mac. In both cases, the****
>
> second image does not appear.****
>
> ** **
>
> What am I doing wrong?****
>
> ** **
>
> The .fo source, the two JPG files, and****
>
> a simple execution script for the "fop"****
>
> shell script are in:****
>
> ** **
>
> http://swansongrp.com/misc/problem.zip****
>
> ** **
>
> (you can ignore the link reference errors, but****
>
> there are no errors from reading the JPG****
>
> files)****
>
> ** **
>
> Thanks for your help.****
>
> ** **
>
> ** **
>
> Bob Swanson****
>
--
pascal
RE: One JPG Displays, the Other Does Not
Posted by Roland Neilands <rn...@pulsemining.com.au>.
Bob,
IIRC, you are putting a 900px file into a 25pt area. FOP should shrink it to fit, but I suspect it still has issues doing this with large jpgs. Other image types (gif etc) work better.
Cheers,
Roland
From: bob swanson [mailto:bobswansong@gmail.com]
Sent: Monday, 13 May 2013 12:51 PM
To: fop-users@xmlgraphics.apache.org
Subject: One JPG Displays, the Other Does Not
I noticed this problem with a much larger document
I'm producing. I was able to trim down
to a small .fo file and two JPG images.
I can display the JPG images with many software
products, so I know they are valid. However, the
PDF file created by my short script (using
the "fop" script on a Mac OSX system),
displays only one of the images. The
other is missing. I've tried viewing the
created PDF file with Adobe Reader, and
"Preview" from the Mac. In both cases, the
second image does not appear.
What am I doing wrong?
The .fo source, the two JPG files, and
a simple execution script for the "fop"
shell script are in:
http://swansongrp.com/misc/problem.zip
(you can ignore the link reference errors, but
there are no errors from reading the JPG
files)
Thanks for your help.
Bob Swanson