Samples

Convert Between File Types - PDF, SVG, XPS, SVG, TIFF, PNG, JPEG

C#
C++
Conversion
Go
Images
Java
JavaScript
PHP
Python
Ruby
VB

This sample shows how to use PDFNet Convert Add-on (i.e. 'pdftron.PDF.Convert' namespace) for direct, high-quality conversion between PDF, XPS, EMF, SVG, TIFF, PNG, JPEG, and other image formats. The sample also shows how to convert MS Office files using our built in conversion

Convert CAD to PDF - CAD2PDF

C#
C++
Conversion
Go
Java
JavaScript
PHP
Python
Ruby
VB

This sample shows how to use the Apryse CAD module for direct, high-quality conversion from DWG, DXF, DGN, DWF, and RVT to PDF.

Convert File Types with Virtual Printer on Windows - ConvertPrint

C#
C++
Conversion
Go
Java
JavaScript
Python
VB

The sample shows how to convert any printable document (e.g. RTF, MS Office, TXT, etc) to PDF or XPS using virtual printer on Windows.

Convert PDF to DOCX, XSLX - PDF2Office

C#
C++
Conversion
Go
Java
JavaScript
Office
PHP
Python
Ruby
VB

This example illustrates how to convert generic PDF documents to Word, Excel, PowerPoint format

Convert PDF to HTML - PDF2Html

C#
C++
Conversion
Go
Java
JavaScript
PHP
Python
Ruby
VB

This example illustrates how to convert generic PDF documents to HTML format

Convert XAML to PDF - Xaml2Pdf - in C#

C#
Conversion

This example shows how to use PDFNet Convert Add-on (i.e. 'pdftron.PDF.Convert' namespace) to dynamically generate PDF or XPS directly from a FlowDocument, XAML, or WPF. Converting XAML/FlowDocument to PDF is not only easy, but is also very flexible in terms of how content is paginated and flowed into a fixed document such as PDF or XPS.

Convert to PDF/A

C#
C++
Conversion
Go
Java
JavaScript
PDF/A
PHP
Python
Ruby
VB

This sample illustrates how to validate existing PDF documents for PDF/A compliance as well as to convert generic PDF documents to PDF/A format.

DOCX, XSLX to PDF Conversion - OfficeToPDF

C#
C++
Conversion
Go
Java
JavaScript
Office
PHP
Python
Ruby
VB

This sample illustrates how to convert MS Office files (Word, Excel, PowerPoint) to PDF.

HTML to PDF Conversion - HTML2PDF

C#
C++
Conversion
Go
Java
JavaScript
PHP
Python
Ruby
VB

Sample code to use Apryse SDK for directly converting HTML pages to PDF by using 'pdftron.PDF.HTML2PDF'. The HTML2PDF converter supports HTML conversion from a string or URL and offers many options to control page size and formatting.

WebViewer Integration - JavaScript PDF Viewer

C#
C++
Conversion
Go
Java
JavaScript
PHP
Python
Ruby
VB
Viewing

These samples shows how to integrate PDFNet WebViewer into any HTML5, Silverlight, or Flash web application. The sample is using 'pdftron.PDF.Convert.ToXod()' to convert/stream PDF, XPS, MS Office, RTF, HTML and other document formats to WebViewer 'pdftron.PDF.Convert.ToXod()' is an optional Add-On to the Core SDK and is part of PDFNet WebViewer Publishing Platform.