PDF .NET Library Documentation - PDF Technologies, Inc.
Function used to convert XML files to PDF.

Namespace:  PDFTech
Assembly:  PDFTechLib (in PDFTechLib.dll) Version: 1.0.0.0 (1.7.9.0)

Syntax

C#
public void ImportXml(
	string xmlFile,
	string xslFile,
	string WorkingPath
)
Visual Basic (Declaration)
Public Sub ImportXml ( _
	xmlFile As String, _
	xslFile As String, _
	WorkingPath As String _
)
Visual C++
public:
void ImportXml(
	String^ xmlFile, 
	String^ xslFile, 
	String^ WorkingPath
)

Parameters

xmlFile
Type: System..::.String
Location of XML file
xslFile
Type: System..::.String
Location of XSL file
WorkingPath
Type: System..::.String
Location of where the temporary files will be created.

Remarks

XMLToPDF function is use to convert XML files to PDF You may specify the style information by supplying and XSL dile.

Examples

The code sample below shows how you may easily convert an XML file to a PDF file.
CopyC#
PDFDocument doc = new PDFDocument("c:\sample.pdf");                  
doc.XmlToPDF("c:\sample.xml", "c:\sample.xsl", "c:\temp");
doc.Save();

See Also