The following samples show how to extract data from existing PDF
- ElementReader (http://www.pdftron.com/net/
samplecode.html#ElementReader): This sample illustrates the basic
pattern of how to use ElemenReader class to extract graphical content
of a PDF page.
- TextExtract (http://www.pdftron.com/net/
samplecode.html#TextExtract): This sample is a variation on the above
theme illustrating how to implement basic text search and extraction
- ImageExtract (http://www.pdftron.com/net/
samplecode.html#ImageExtract): This sample is another extension to
ElementReader sample project, illustrating different approaches to
extract embedded images from PDF.
- ElementReaderAdv (http://www.pdftron.com/net/
samplecode.html#ElementReaderAdv). This sample is of interest if you
need to implement PDF import or PDF conversion type of functionality.
In this sample, the ProcessElements function reads path/vector art,
text, and image data.
Some of our other products such as PDF2SVG (http://www.pdftron.com/
pdf2svg/index.html) converter are implemented using the above high-
level API-s and they can give you a glance of what is possible using
these high-level API-s.
PDFNet SDK also comes with two built-in rasterizers that can be used
to convert any PDF page to a bitmap. A good place to start
experimenting with PDFNet rasterizers is the PDFDraw sample project
If you are looking to add support for interactive, resolution-
independent PDF viewing a good place to look at is PDFView sample
project: http://www.pdftron.com/net/samplecode.html#PDFView. Although
the C++ sample is using MFC, PDFNet itself does not rely on MFC/ATL or
any other application framework.
PDFNet SDK supports all types of PDF encryption and security methods.
EnctTest sample project (http://www.pdftron.com/net/
samplecode.html#EncTest) shows how to open password protected PDF
documents or how to apply security to existing or newly generated
PDFNet SDK also provides full, low-level access to PDF documents via
so-called Cos/SDF API (http://www.pdftron.com/net/faq.html#what_sdf).
The SDF namespace API along with seamless integration with high-level
API-s that reside in PDF namespace allow easy customization and
creation of new high-level features. For an example of how you could
use the SDF API to embed U3D content (3 dimensional models) in PDF,
please take a look at U3DTest sample project: http://www.pdftron.com/net/samplecode/U3DTest.cs
With regards to PDF generation, using PDFNet SDK you can create new
PDF documents or add new content to existing PDF documents.
ElementBuilder and AddImage sample projects illustrate the basics of
how to create PDF content. Some of advantages of using PDFNet SDK for
PDF generation are advanced image compression (such as JBIG2 and
JPEG2000), support for AES (Advanced Encryption Standard) and other
PDF security filters, and ability to generate linearized (i.e. web-
optimized) PDF documents.
Another unique feature of PDFNet SDK is that it supports PDF page and
content editing. For example, this feature makes it possible to
replace existing content (such as a CAD layer on PDF page) with new
content. The ElementEdit sample project (http://www.pdftron.com/net/
samplecode.html#ElementEdit) shows how to change text color and remove
all images on a given PDF page.