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
| 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.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.