Configuration

By default, DynamicPDF Core Suite for .NET creates single-pass (non-linearized) PDF documents that are tagged as PDF version 1.7. These values can be specified individually on each document object through the documents PdfVersion and PdfFormat properties, but you can also change these defaults globally as follows.

Configuration File

Specify the default PDF version and format globally using the node of your applications .config (web.config for web applications) file.

Key Acceptable Values Default
ceTe.DynamicPDF.Document.DefaultPdfFormat SinglePass, Linearized SinglePass
ceTe.DynamicPDF.Document.DefaultPdfVersion 1.3, 1.4, 1.5, 1.6, 1.7 1.7

Example:

Static Properties

You can also set the DefaultPdfFormat and DefaultPdfVersion static properties for a Document object.

document.DefaultPdfFormat = PdfFormat.Linearized;
document.DefaultPdfVersion = PdfVersion.v1_5;        
document.DefaultPdfFormat = PdfFormat.Linearized
document.DefaultPdfVersion = PdfVersion.v1_5        

Note: This only affects document objects created after the static properties are set.

In this topic