Skip to main content

Configuration

Version: 11.0

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.

KeyAcceptable ValuesDefault
ceTe.DynamicPDF.Document.DefaultPdfFormatSinglePass, LinearizedSinglePass
ceTe.DynamicPDF.Document.DefaultPdfVersion1.3, 1.4, 1.5, 1.6, 1.71.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.