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 "Rajendran, Arun N. (IT Consultant)" <AN...@consultantemail.com> on 2012/08/07 14:50:50 UTC

RE: Blank lines in PDF file



We are seeing blank line in the pdf file after migrating apache FOP 0.93 from weblogic to tomcat.

After spending so much time we found that xalan-2.7.0.jar inside the application war file is the cause of blank line in the pdf file. Everything working fine if we remove xalan-2.7.0.jar file but it is breaking one of the application functionality. Can someone help us how to use both fop and xalan in tomcat to generate PDF without blank lines?

Thanks
Arun


RE: Blank lines in PDF file

Posted by "Rajendran, Arun N. (IT Consultant)" <AN...@consultantemail.com>.
This issue is easily reproducable using the following steps

Deploy fop.war that comes with apache FOP build  inside the tomcat container and try to access the following URL and you will be seeing PDF file without any spaces

http://hostname:portnumber/fop/fop?xml=/path/to/xmlfile&xslt=/path/to/xslfile

Now download all the xml parser jar files from the following link and add it to tomcat classpath and try to access the URL again and you will be seeing the space in the pdf file

http://mirror.nexcess.net/apache/xml/xalan-j/xalan-j_2_7_1-bin-2jars.tar.gz

we need to have both fop.jar and xalan.jar for our application and we tried with different classloader and nothing worked.

Thanks,

Arun

________________________________
From: Rajendran, Arun N. (IT Consultant)
Sent: Tuesday, August 07, 2012 8:51 AM
To: fop-users@xmlgraphics.apache.org
Subject: RE: Blank lines in PDF file




We are seeing blank line in the pdf file after migrating apache FOP 0.93 from weblogic to tomcat.

After spending so much time we found that xalan-2.7.0.jar inside the application war file is the cause of blank line in the pdf file. Everything working fine if we remove xalan-2.7.0.jar file but it is breaking one of the application functionality. Can someone help us how to use both fop and xalan in tomcat to generate PDF without blank lines?

Thanks
Arun