Skip to main content

Configuration

Version: 7.0

Configuration

By default DynamicPDF Generator for .NET produces single pass (non-linearized) PDF documents that are tagged as PDF version 1.4. 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​

The default PDF version and format can be specified 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.4

Example:​

Static Properties​

These can also be set using the DefaultPdfFormat and DefaultPdfVersion static properties on the Document object.

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

Note: This will only affect Document objects created after the static properties are set.