PDF Code Library - C# Code Samples
Please note that when you run the setup program, the installer creates a folder called "PDF Technologies" on your desktop.
This folder contains several Visual Studio sample projects, each with numerous source code samples for common tasks.
The "applications" sub-folder contains source code for 3 tools we make available from our web site.
Use these projects to quickly get started with your own projects.
Adding License Key
The code sample shows how to specify a valid license key in PDFTechLib
How to fill Acroforms
The code sample fills an AcroForm and creates a new PDF document.
How to add images to a PDF Document
The code sample creates a PDF with a image in it.
How to create Annotations
The code sample creates a PDF, adds a small text along with an annotation.
The code sample creates a PDF AcroForm that contains various controls.
The code sample creates PDF bookmarks that are shown in left side bar
How to create tables
The code sample creates a table.
How to use different Headers on different pages
The code sample sets different headers on different pages of a PDF document.
How to draw 2D Barcodes
The code sample draws 2D barcodes on a PDF page.
How to draw Linear Barcodes
The code sample draws a barcode on a PDF page.
Extract form data from an existing PDF file
The code sample extracts form data from an existing PDF document
Extract PDF info
The code sample shows how to retrieve PDF info objects.
Extracting text from specific area of a PDF document
The code sample extracts text from specific region on a page.
HTML to PDF Conversion
The code sample generates a PDF file from the given URL.
How to create URL links on a PDF page
The code sample creates a PDF file called "links.pdf" that contains a link to a web site.
Merging PDF files
This code sample merges two PDF documents to create a third.
The code sample creates multiple PDF pages and assigns varying page number styles.
Setting the active font
The code sample creates a PDF that contains text in the ARIAL font style.
Setting an alternate font directory
The code sample retrieves fonts from a specific directory instead of the default windows/font directory
Special characters in PDF
The code sample uses the add text method using special characters.
How to split a PDF File
The code sample splits a PDF document
Table with Acroform elements
The code sample creates an acroform. The controls and labels are placed in table cells.
How to use Templates
The code sample creates PDF document using another PDF document as a template
How to extract text from a PDF document
The code sample extracts the text content of a PDF file.
TextOut Method and Add URL
The code sample creates a PDF document using the TextOut method. It also creates a URL.
How to convert Tiff images to PDF
The code sample creates a PDF using the TIFF image.
The code sample creates a PDF document with the Unicode text output.
Working with PDFTechLib in restricted web hosting environments
The code sample shows how PDFTechLib can be used in restricted web hosting environments
Working with Arabic Characters
The code samples creates a PDF document with Arabic text.
XML to PDF
The code sample creates a PDF document using XML and XSL file combination.