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 Matthias Brunner <mb...@blumenstrasse.vol.at> on 2002/12/03 14:28:09 UTC
Strange irregularities in page breaking
Hello,
I have encountered the following problem:
Input files and stylesheets are *exactly* the same. 73 pages are
rendered regardless of whether calling from code/command line.
(Tried with both PDF and XML renderer)
But on page 63 and subsequent fop called from java code breaks
differently, yet only a few words.
Nevertheless this made me somewhat nervous and I tried the following:
Driver d = new Driver();
org.apache.fop.configuration.Configuration.put("baseDir","FOP_HOME");
org.apache.fop.apps.Options options = new Options(new
File("FOP_HOME/config/userconfig.xml"));
No effects.
And fop -x ... did not even work!
Why are these differences?
Thanks in advance!
--
Matthias Brunner <mb...@blumenstrasse.vol.at>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Strange irregularities in page breaking
Posted by Matthias Brunner <mb...@blumenstrasse.vol.at>.
On Wednesday 04 December 2002 15:12, Matthias Brunner wrote:
> On Wednesday 04 December 2002 13:12, Oleg Tkachenko wrote:
> > Okay, next attempt: show us how are you running FOP from the
> > command line and from an embedding.
>
> I have set up a test case
> (http://blumenstrasse.vol.at/~mb/foptest.zip, 15KB) with all
> necessary files included. Just copy all of them into a clean FOP
> 0.20.4 directory.
>
Has anyone had a look it this? Oleg?
Should I submit it as a bug?
Best regards!
--
Matthias Brunner <mb...@blumenstrasse.vol.at>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Strange irregularities in page breaking
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Matthias Brunner wrote:
> I have set up a test case
> (http://blumenstrasse.vol.at/~mb/foptest.zip, 15KB) with all
> necessary files included. Just copy all of them into a clean FOP
> 0.20.4 directory.
>
> Then issue these commands:
> ./fop.sh -xml lpdoc.xml -xsl lp2pdf.xsl -pdf cli.pdf
> ./embedtest.sh lpdoc.xml lp2pdf.xsl embed.pdf
>
> The first difference occurs at page 63 of 73.
Probably your code builds different fo document (e.g. it could be white-space,
aka indentation). Try to compare result of simple xsl transformation lpdoc.xml
+ lp2pdf.xsl and the resulting fo document, created by your code.
--
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
Re: Strange irregularities in page breaking
Posted by Matthias Brunner <mb...@blumenstrasse.vol.at>.
On Wednesday 04 December 2002 13:12, Oleg Tkachenko wrote:
> Okay, next attempt: show us how are you running FOP from the
> command line and from an embedding.
Oleg,
thanks for your commitment.
I have set up a test case
(http://blumenstrasse.vol.at/~mb/foptest.zip, 15KB) with all
necessary files included. Just copy all of them into a clean FOP
0.20.4 directory.
Then issue these commands:
./fop.sh -xml lpdoc.xml -xsl lp2pdf.xsl -pdf cli.pdf
./embedtest.sh lpdoc.xml lp2pdf.xsl embed.pdf
The first difference occurs at page 63 of 73.
Best regards!
--
Matthias Brunner <mb...@blumenstrasse.vol.at>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Strange irregularities in page breaking
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Matthias Brunner wrote:
> I copied fop.sh and changed only one line to start my class which I
> copied to FOP_HOME/lib. So I think every setting and the classpath
> will be the same.
> Yet output remains different. I don't understand.
>
> Software used: fop 0.20.4, JDK 1.4.1_01, Linux
Okay, next attempt: show us how are you running FOP from the command line and
from an embedding.
--
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
Re: Strange irregularities in page breaking
Posted by Matthias Brunner <mb...@blumenstrasse.vol.at>.
On Tuesday 03 December 2002 20:11, Oleg Tkachenko wrote:
> > And fop -x ... did not even work!
>
> Did you mean -c?
No, -x for "dump all configuration settings".
>
> > Why are these differences?
>
> Make sure you are embedding FOP in the same way you are running it
> from command line (I mean the same baseDir, userconfig.xml, JVM
> itself and jaxp/sax properties, classpath etc). Should be some
> difference as we don't believe in a magic.
I copied fop.sh and changed only one line to start my class which I
copied to FOP_HOME/lib. So I think every setting and the classpath
will be the same.
Yet output remains different. I don't understand.
Software used: fop 0.20.4, JDK 1.4.1_01, Linux
Best regards!
--
Matthias Brunner <mb...@blumenstrasse.vol.at>
PGP FP 7862 32B3 3B75 292A F76F 5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: Strange irregularities in page breaking
Posted by Oleg Tkachenko <ol...@multiconn.com>.
Matthias Brunner wrote:
> I have encountered the following problem:
> Input files and stylesheets are *exactly* the same. 73 pages are
> rendered regardless of whether calling from code/command line.
> (Tried with both PDF and XML renderer)
>
> But on page 63 and subsequent fop called from java code breaks
> differently, yet only a few words.
>
> Nevertheless this made me somewhat nervous and I tried the following:
>
> Driver d = new Driver();
> org.apache.fop.configuration.Configuration.put("baseDir","FOP_HOME");
> org.apache.fop.apps.Options options = new Options(new
> File("FOP_HOME/config/userconfig.xml"));
>
> No effects.
> And fop -x ... did not even work!
Did you mean -c?
> Why are these differences?
Make sure you are embedding FOP in the same way you are running it from
command line (I mean the same baseDir, userconfig.xml, JVM itself and
jaxp/sax properties, classpath etc). Should be some difference as we
don't believe in a magic.
--
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