PDFDoc Scout |
PDFDoc Scout library - Sample
How to convert XML into
PDF using XSLT template transformation
You can download the source code of this example
(VBScript) here: This example describes how to transform XML into PDF document using XSLT (.xsl) template using PDFDoc Scout library Source XML data (simpsons.xml): <?xml version="1.0" encoding="UTF-8"?> XSLT template (simpsons.xsl): <?xml version="1.0" ?> <xsl:template match="FamilyMember"> Produced PDF document (XML2HTML.pdf generated from source Simpsons.xml XML data)
Code to transform XML and convert into PDF using PDFDoc Scout lib: ' Transform XML using XSLT and get HTML code Set PDFDoc = CreateObject("PDFDocScout.PDFDocument") PDFDoc.BeginDocument ' load source XML document ' load XSLT template ' create XML doc to store result of transformation ' transform XML using XSLT into objResultXML document ' convert produced HTML code from objResultXML document
into PDF PDFDoc.EndDocument ' close PDF document generation ' disconnect from library You can download the source code of this example (VBScript)
here: See also XML to PDF example for Visual C# here
"Hello, World!" quick start step-by-step tutorials: |
|
|
||