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 2014/06/18 18:58:44 UTC

Misleading Error Message When Image Exceeds Viewport

I was working on a large (530+ pages) PDF creation
and was receiving an error that the viewport
was being exceeded. I finally figured out that
an image was too long, and bled beyond the
text of the page. That is my issue, and I
figured out at least one way to get around that.

The problem is that the error message
issued gave the wrong page number, and
I was looking for trouble in the wrong
part of the output PDF.

The following ZIP file has a script and
input files that reproduce the problem
with the error message. The script would
need modification to run on another machine,
as I have quite a configuration mess to
deal with. However, the "fop" script invocation
is pretty simple, and the input .fo file is
also pretty simple.

http://swansongrp.com/misc/the_test.zip

If necessary, I can open a problem report.

Thanks for all your help,


Bob Swanson
bobswansong@gmail.com

Re: Misleading Error Message When Image Exceeds Viewport

Posted by Pascal Sancho <ps...@gmail.com>.
Hi,

to prevent such warning, you should use
*-progression-dimension.maximum properties.

on i-p-d axis, this is trivial (100% is usable), but on b-p-d axis,
you have to compute the maximum size by yourself:

<fo:external-graphic src="woman_navy_1918.jpg"
    inline-progression-dimension.maximum="100%"
    content-width="scale-down-to-fit"
    block-progression-dimension.maximum="20cm"
    content-height="scale-down-to-fit"/>

2014-06-18 18:58 GMT+02:00 bob swanson <bo...@gmail.com>:
>
> I was working on a large (530+ pages) PDF creation
> and was receiving an error that the viewport
> was being exceeded. I finally figured out that
> an image was too long, and bled beyond the
> text of the page. That is my issue, and I
> figured out at least one way to get around that.
>
> The problem is that the error message
> issued gave the wrong page number, and
> I was looking for trouble in the wrong
> part of the output PDF.
>
> The following ZIP file has a script and
> input files that reproduce the problem
> with the error message. The script would
> need modification to run on another machine,
> as I have quite a configuration mess to
> deal with. However, the "fop" script invocation
> is pretty simple, and the input .fo file is
> also pretty simple.
>
> http://swansongrp.com/misc/the_test.zip
>
> If necessary, I can open a problem report.
>
> Thanks for all your help,
>
>
> Bob Swanson
> bobswansong@gmail.com
>



-- 
pascal

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


Re: Misleading Error Message When Image Exceeds Viewport

Posted by Pascal Sancho <ps...@gmail.com>.
regarding the warning message, I can't reproduce the wrong page number.

2014-06-18 18:58 GMT+02:00 bob swanson <bo...@gmail.com>:
>
> I was working on a large (530+ pages) PDF creation
> and was receiving an error that the viewport
> was being exceeded. I finally figured out that
> an image was too long, and bled beyond the
> text of the page. That is my issue, and I
> figured out at least one way to get around that.
>
> The problem is that the error message
> issued gave the wrong page number, and
> I was looking for trouble in the wrong
> part of the output PDF.
>
> The following ZIP file has a script and
> input files that reproduce the problem
> with the error message. The script would
> need modification to run on another machine,
> as I have quite a configuration mess to
> deal with. However, the "fop" script invocation
> is pretty simple, and the input .fo file is
> also pretty simple.
>
> http://swansongrp.com/misc/the_test.zip
>
> If necessary, I can open a problem report.
>
> Thanks for all your help,
>
>
> Bob Swanson
> bobswansong@gmail.com
>



-- 
pascal

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