943,152 Members | Top Members by Rank

Ad:
Nov 25th, 2009
0

Generate PDF files from XML using XSLT and Apache FOP

Expand Post »
Hi all,

I'm using XSL-FO and Apache FOP to generate PDF documents from XML documents. I managed to transform the XML into PDF with 1 page per sheet, but I also would like to get PDFs with 2 and 4 pages per sheet. Does anyone have any idea how I can do this? I have looked in the W3Schools tutorials, but I found nothing about it.

Regards,
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
rodrigodsp is offline Offline
1 posts
since Nov 2009
Dec 29th, 2009
0
Re: Generate PDF files from XML using XSLT and Apache FOP
I do believe that this is a function of the printer and the drivers associated with the printer.

Excerpt from the Acobat 8 Professional Help Guide:

"Multiple Pages Per Sheet Enables N-up printing, where multiple pages print on the same sheet of paper. If this option is selected, you can also specify settings for Pages Per Sheet, Page Order, Print Page Border, and Auto-Rotate Pages.

Note: N-up printing in Acrobat is independent of the N-up printing features of printer drivers. The Acrobat print settings don’t reflect the N-up settings of the printer drivers. Select N-up printing either in Acrobat or in the printer driver, but not both."


The functionality is called "page scaling" which is a function of Acrobat Reader 7 and up (pdf specs 1.6+). Apache FOP, from when I last checked for 0.95, only supported writing of PDF files based on the pdf 1.4 spec. You can look into a port of Apache FOP called iText (HomePage).

HTH's
sinnerFA
Reputation Points: 19
Solved Threads: 9
Junior Poster in Training
sinnerFA is offline Offline
70 posts
since Sep 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in XML, XSLT and XPATH Forum Timeline: adding namespaces to XmlSerializer when deserializing (C#)
Next Thread in XML, XSLT and XPATH Forum Timeline: XML with Grandchildren to datagridview?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC