wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Help! XSL-FO generates blank PDF files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Help! XSL-FO generates blank PDF files" Watch "Help! XSL-FO generates blank PDF files" New topic
Author

Help! XSL-FO generates blank PDF files

Walter Chen
Greenhorn

Joined: Jan 10, 2003
Posts: 25
Hi, I am new to XSL-FO.
I downloaded the code from Apache ... I am using the FopServlet to generate PDF files. When I use .fo files, everything works fine (I can get the PDF files). But when I use xsl and xml files (using the files that come with the examples in the fop package download), I always get a blank page. What did I do wrong?
Thanks,
Walter
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Sometimes its depends on the broswer that you use.
You can avoid this by appending a dummy extension at the end of the URL like
http://localhost/servlet/FOPServlet?xsl=foo.xsl&xml=foo.xml&pdf=dummy.pdf
Also please check whether you are able to generate PDF (with datas)for the xsl and xml using the command prompt option
[ May 16, 2003: Message edited by: Balaji Loganathan ]

Spritle Software Blogs
Walter Chen
Greenhorn

Joined: Jan 10, 2003
Posts: 25
Hi, Balaji:
Wow, that works. Thanks! Amazing how a little trick can go a long way ;-)
Walter
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help! XSL-FO generates blank PDF files
 
Similar Threads
need a dynamic example FOP from a database
looking for tool to convert xml to pdf
Apache FOP to PDF Arabic display problem
Visual Editor for XSL-FO
[XSL/FO] displaying date in pdf file