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 Clay Leeds <cl...@medata.com> on 2003/02/03 19:47:00 UTC
Different JRE versions' affect on extent/margin(s)
In testing my application, I've noticed that different JRE's produce
differing FOP output. Specifically, Java 1.3.1_04 tends to require more
space for region-before & region-after than Java 1.4.1_01. If I use the
1.4.1 extents/margin(s) with 1.3.1, I get a "Some static text did not
fit" error, and it prints on the next page (if there is one--FOPpers
know the drill :-). If I use the 1.3.1 extents/margin(s) wwith 1.4.1, I
end up with incorrect region-before/after, leaving 1-2cm of white-space
around region-body.
My problem is that I have clients who use wide-ranging JREs using my
templates. I'd like to come up with an intelligent solution to this
(e.g., use JRE -version as a parameter to re-calculate the
extents/margin(s))
My questions are:
- Is this documented anywhere?
- Is there a matrix/calculation enabling me to change this
- How do others handle this problem?
Here're excerpts from the Java 1.3.1 & 1.4.1 versions of my .fo files:
** Java 1.3.1 **
<fo:layout-master-set>
<fo:simple-page-master master-name="repeating" page-height="28cm"
page-width="22cm" margin-top="1cm" margin-bottom="1.3cm"
margin-left="1cm" margin-right="1cm">
<fo:region-body margin-bottom="7.1cm" margin-top="8.3cm"/>
<fo:region-before extent="8.3cm"/>
<fo:region-after extent="7.1cm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="repeating_pm">
<fo:repeatable-page-master-reference master-name="repeating"/>
</fo:page-sequence-master>
</fo:layout-master-set>
** Java 1.4.1 **
<fo:layout-master-set>
<fo:simple-page-master master-name="repeating" page-height="28cm"
page-width="22cm" margin-top="1cm" margin-bottom="1.3cm"
margin-left="1cm" margin-right="1cm">
<fo:region-body margin-bottom="6.6cm" margin-top="7.4cm"/>
<fo:region-before extent="7.4cm"/>
<fo:region-after extent="6.6cm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="repeating_pm">
<fo:repeatable-page-master-reference master-name="repeating"/>
</fo:page-sequence-master>
</fo:layout-master-set>
Many thanks!
--
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: xalan.bat/xalan.sh files in 0.20.5 distribution?
Posted by Clay Leeds <cl...@medata.com>.
You guys (or should I say "us" guys? :-) are bitchin!
J.Pietschmann wrote:
> Clay Leeds wrote:
>
>> Are "we" going to add a xalan.bat/xalan.sh script (and any other
>> similar, useful files) to the distribution?
>
>
> Yes, already done. Check out the maintenance code.
>
> J.Pietschmann
--
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: xalan.bat/xalan.sh files in 0.20.5 distribution?
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Clay Leeds wrote:
> Are "we" going to add a xalan.bat/xalan.sh script (and any other
> similar, useful files) to the distribution?
Yes, already done. Check out the maintenance code.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
xalan.bat/xalan.sh files in 0.20.5 distribution?
Posted by Clay Leeds <cl...@medata.com>.
Are "we" going to add a xalan.bat/xalan.sh script (and any other
similar, useful files) to the distribution? FWIW, here's the content of
my xalan.bat file:
java -cp lib/xml-apis.jar;lib/xercesImpl-2.0.1.jar;lib/xalan-2.3.1.jar
org.apache.xalan.xslt.Process -IN %1 -xsl %2 -OUT %3 -DIAG
(it doesn't work yet, but I'm sure it could be improved by one of the
FOP-DEVers versed in such things :).
--
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: Different JRE versions' affect on extent/margin(s)
Posted by Clay Leeds <cl...@medata.com>.
Any clues about what I should I look for? I've checked bugzilla (or
whatever the FOP/Apache version is called), and there's no reference to
this bug. I've also looked in MARC, but don't see anything relevant.
I guess I'll open up a bug. Expect to see "DO NOT REPLY" msgs shortly...
Oleg Tkachenko wrote:
> Clay Leeds wrote:
>
>> Wait. I'm rendering to "-print".
>
> Hmmm, -print option uses AWTRenderer actually, so that might have
> something to do with AWT differences in different jdk versions. I
> thought it's fixed in 0.20.5rc aleady :( Search in the archive, there
> were discussion and bug reports and pathes about it. If it doesn't help
> - open a bug.
--
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Different JRE versions' affect on extent/margin(s)
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Clay Leeds wrote:
> Wait. I'm rendering to "-print".
Hmmm, -print option uses AWTRenderer actually, so that might have something to
do with AWT differences in different jdk versions. I thought it's fixed in
0.20.5rc aleady :( Search in the archive, there were discussion and bug
reports and pathes about it. If it doesn't help - open a bug.
--
Oleg Tkachenko
Multiconn Technologies, Israel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Different JRE versions' affect on extent/margin(s)
Posted by Clay Leeds <cl...@medata.com>.
Oleg Tkachenko wrote:
> Clay Leeds wrote:
>
>> In testing my application, I've noticed that different JRE's produce
>> differing FOP output. Specifically, Java 1.3.1_04 tends to require
>> more space for region-before & region-after than Java 1.4.1_01. If I
>> use the 1.4.1 extents/margin(s) with 1.3.1, I get a "Some static text
>> did not fit" error, and it prints on the next page (if there is
>> one--FOPpers know the drill :-). If I use the 1.3.1 extents/margin(s)
>> wwith 1.4.1, I end up with incorrect region-before/after, leaving
>> 1-2cm of white-space around region-body.
>
> Which renderer are you using? Anyway provide full test case to reproduce
> the problem.
I am using FOP-0.20.4, although I've noticed the same problem with
0.20.5rc as well. Is that what you mean?
Wait. I'm rendering to "-print".
I've also noticed that when I render to -pdf, I have similar differences
from when I render to -print (i.e., region-before/after margin(s) are off.
--
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Different JRE versions' affect on extent/margin(s)
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Clay Leeds wrote:
> In testing my application, I've noticed that different JRE's produce
> differing FOP output. Specifically, Java 1.3.1_04 tends to require more
> space for region-before & region-after than Java 1.4.1_01. If I use the
> 1.4.1 extents/margin(s) with 1.3.1, I get a "Some static text did not
> fit" error, and it prints on the next page (if there is one--FOPpers
> know the drill :-). If I use the 1.3.1 extents/margin(s) wwith 1.4.1, I
> end up with incorrect region-before/after, leaving 1-2cm of white-space
> around region-body.
Which renderer are you using? Anyway provide full test case to reproduce
the problem.
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org