File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help! XSL-FO generates blank PDF files

 
Walter Chen
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Walter Chen
Greenhorn
Posts: 25
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic