This week's book giveaway is in the Agile and Other Processes forum. We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line! See this thread for details.
Hi All My application need is to convert multiple XML files into a single PDF document.I have generated separate XSL files for each xml respectively. I able to generate a PDF file for a single XML file when i try to generate a PDF file for multiple XML files then the PDF gets overwritten by the last XML document.Can any one help me in this regards Thanks Shanu
If I understand your problem correctly, you need to concentrate on combining all of your XML streams into a single XML:FO file which can then be turned into a single PDF document. Which toolkit are you using for PDF generation? Bill
Hi Bill, My application gets n no of excel sheets as input which should be converted into single pdf.these are the steps i am following for the conversion 1.To generate the xml files for each excel document i am using POI (HSSF). 2.To generate the xsl files for each XML document i am using SAX. 3.To generate PDF i am using FOP and giving input as a pair of xml and xsl,but the generated PDF contents are overwritten by final pair of xml and xsl.
All the XML and XSL files are generated at run time and for these a single pdf has to be generated, I have to do this using FOP api only.
My Excel sheet contains images also how to put these images into the PDF document.Can u plz help me I hope now u have understood the problem and will help me in this regard
On your way in you may have missed that there is a policy on screen names here on JavaRanch, and yours does not conform to it. We take this policy serious, so please adjust your screen name right here. Thanks for your prompt attention to this matter.
- You can create a "master" XML file, in which the various files to be joined together are declared as entities, and then included in the body. FOP can deal with that, and will then create a single PDF file.
- After you have created the PDF files (under different names), you can use the iText library to join them together. iText even has a short demo program that shows how to concatenate PDF files.
Images are supported through something like the following:
I'm so happy! And I wish to make this tiny ad happy too:
a bit of art, as a gift, that will fit in a stocking