- ProductsGreat pdf developer solutions
- SupportDeveloper 2 developer support
- ResourcesCommunity & developer resources
Shows how to add a text annotation to an existing page and how to create link annotations between several pages:C#, Java, VB.Net, C++, Python, PHP, Ruby, Objective-C
This sample illustrates how to embed various raster image formats (e.g. TIFF, JPEG, JPEG2000, JBIG2, GIF, PNG, BMP, etc.) in a PDF document.C#, Java, VB.Net, C++, Python, PHP, Ruby, Objective-C
This sample shows how to use 'pdftron.PDF.ContentReplacer' to search and replace text strings and images in existing PDF (e.g. business cards and other PDF templates). Unlike PDF forms, the ContentReplacer works on actual PDF content and is not limited to static rectangular annotation regions.C#, Java, VB.Net, C++, Python, PHP, Ruby, Objective-C
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 any printable document (e.g. Word, HTML, RTF, MS Office, DXF, DWG, etc) to PDF or XPS using a universal document converter.
The sample code illustrates how to read and edit existing outline items and create new bookmarks using the high-level API .C#, Java, VB.Net, C++, Python, PHP, Ruby, Objective-C
Demonstrates the basic usage of high-level digital signature API to digitally sign and/or certify PDF documents.C#, Java, VB.Net, C++, Python, PHP, Ruby, Objective-C
Illustrates encryption support in PDFNet. The sample code reads an encrypted document and sets a new SecurityHandler.C#, Java, VB.Net, C++, Python, PHP, Ruby, Objective-C
Illustrates how to use PDFNet page writing API, how to embed fonts and images and how to copy graphical elements from one page to another.C#, Java, VB.Net, C++, Python, PHP, Ruby, Objective-C
The sample code illustrates a technique that can be used to edit text on the page by modifying char code data in text runs.C#, Java, VB.Net, C++ , Python, PHP, Ruby, Objective-C
The sample code shows how to edit the page display list and how to modify graphics state attributes on existing Elements. In particular the sample program strips all images from the page and changes text color to blue.C#, Java, VB.Net, C++, Python, PHP, Ruby, Objective-C
Illustrates how to traverse page display list using ElementReader.C#, Java VB.Net, C++, Python, PHP, Ruby, Objective-C
The sample shows how to use some of more advanced PDFNet features. The sample code illustrates how to extract text, paths, and images. The sample also shows how to do color conversion, image normalization, and how to process changes in the graphics state.C#, Java, VB.Net, C++, Python, PHP, Ruby, Objective-C
PDFNet includes a full support for FDF (Forms Data Format) and capability to merge/extract forms data (FDF) with/from PDF. The sample illustrates basic FDF merge/extract functionality available in PDFNet.
The sample shows how to directly convert HTML pages to PDF using 'pdftron.PDF.HTML2PDF', which is part of separately licensable PDFNet Convert Add-On. HTML2PDF converter supports HTML conversion from a string or URL and offers many options to control page size and formating.
This sample illustrates couple of approaches to PDF image extraction.
The sample illustrates how multiple pages can be combined/imposed using PDFNet. Page imposition can be used to arrange/order pages prior to printing or to assemble a 'master' page from several 'source' pages. Using PDFNet API it is possible to write applications that can re-order the pages such that they will display in the correct order when the hard copy pages are compiled and folded correctly.
The sample illustrates some basic PDFNet capabilities related to interactive forms (also known as AcroForms).
The sample project illustrates how to recompress bi-tonal (black and white) images in existing PDF documents using JBIG2 compression. The sample is intended to show how to specify hint information for image encoder and is not meant to be a generic PDF optimization tool. PDFNet supports both loss-less and lossy JBIG2 compression. To give you a feeling of compression rates possible with PDFNet we re-compressed a document containing 17 scanned pages. The original input document is ~1.4MB and is using standard CCITT Fax compression. Loss-less JBIG2 compression shrunk down the file to 641KB. Lossy JBIG2 compression shrunk down the file to 176KB.
This sample explores the structure and content of a tagged PDF document and dumps the structure information to the console window.
This example illustrates how to work with PDF page labels. PDF page labels can be used to describe a page. This is used to allow for non-sequential page numbering or the addition of arbitrary labels for a page (such as the inclusion of Roman numerals at the beginning of a book).
This example illustrates how to create various PDF patterns and shadings.
The sample shows how to use PDF content extraction API to implement a simple PDF to HTML converter. For a more advanced solution for viewing PDF in HTML without any plug-ins, please see PDFNet WebViewer.
This sample illustrates how to use PDF/A add-on to validate existing PDF documents for PDF/A compliance as well as to convert generic PDF documents to PDF/A format.
This sample shows how to create and use PDFDC (i.e. a PDF Device Context). Windows developers can use standard GDI or GDI+ API-s to write on PDFDC and to generate PDF documents based on their existing drawing functions. PDFDC can also be used to implement file conversion from any printable file format to PDF.
This sample illustrates how to use the built-in rasterizer in order to render PDF images on the fly and how to save resulting images in PNG and JPEG format.
This sample demonstrates how to create PDF layers (also known as Optional Content Groups - OCGs). The sample also shows how to extract and render PDF layers.
This sample shows how to customize the viewer control by implementing a number of custom tools (such as freehand tool, link creation tool, rectangular zoom etc) and custom GUI elements (such as custom navigation and printing). For a more introductory example of how to use PDFViewCtrl, please see PDFViewSimple sample project.
This sample shows how to use PDF viewer control in a basic project. The sample uses a number of built-in features from PDFViewCtrl to implement document navigation, text highlighting, markup, and editing. If you are looking for a sample showing how to further customize the viewer (e.g. by implementing custom tools or custom GUI elements), please take a look at PDFView sample project.
This sample illustrates how to print PDF document using currently selected default printer. It is possible to use PDFNet printing functionality in both client and server applications without dependance on any third party components.
The sample illustrates how to read/write a PDF document from/to memory buffer. This is useful for applications that work with dynamic PDFdocuments that don't need to be saved/read from a disk.
This sample illustrates how to create, extract, and manipulate PDF Packages (also known as PDF Portfolios).
The sample shows how to use 'pdftron.PDF.Redactor' to remove potentially sensitive content within PDF documents. PDFTron Redactor makes sure that if a portion of an image, text, or vector graphics is contained in a redaction region, that portion is destroyed and is not simply hidden with clipping or image masks.
Shows how to change Page's MediaBox using Rect class.
The sample illustrates how to use basic Cos/SDF API to edit an existing document.
These samples shows how to use 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.
The sample shows how to use 'pdftron.PDF.Stamper' utility class to stamp PDF pages with text, images, or with other PDF pages. ElementBuilder and ElementWriter should be used for more complex PDF stamping operations.
The sample shows how to use 'pdftron.PDF.Optimizer' to reduce PDF file size by reducing the file size, removing redundant information, and compressing data streams using the latest in image compression technology. 'pdftron.PDF.Optimizer' is an optional Add-On to PDFNet Core SDK.
The sample illustrates the basic text extraction capabilities of PDFNet.
This sample shows how to use TextSearch to search text on PDF pages using regular expressions. TextSearch utility class builds on functionality available in TextExtractor to simplify most common search operations.
This example illustrates how to embed U3D content (3 dimensional models) in PDF.
An example illustrating how to create Unicode text and how to embed composite fonts.
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.