I have one huge XML document. I have an XSL set representing each node in XML. These XSLs also have java scripts for generating dynamic content. It uses images that are in a separate image folder, and also uses fonts. Currently, I have a program that displays all the nodes that can be converted, and the user clicks on one of the nodes, and the program runs XSLT and displays the HTML content on the IE screen.
I want to write a program (.Net, C # or any .Net language) that will allow the user to perform XSLT conversion on all available notes and create one PDF document. My initial requirement was to display the entire document in IE itself, so I reused the existing code and the foreach node, executed XSLT, and then added it to the current HTML with page breaks and it worked fine until we inflicted huge files Therefore, the requirement has changed to create a single PDF file with all nodes.
I have a few questions:
- What is the best way to create a PDF file using XSLT conversion?
- Since images are a relative path, if we generate XSLT in html and then write it to the output stream, will it lose images?
- Is the font saved in the PDF?
Really appreciate if someone can point me to a good example that I can take and run with it.
Many thanks.
source share