Click or drag to resize

Document Properties

The Document type exposes the following members.

Properties
  NameDescription
Public propertyAutoCloseAppendedDocs
Gets or sets a value indicating if the PDF documents appended to this document using the AppendDocument() method are automatically closed when the current document is closed using the Close() method. The default value is false. The appended documents must remain open until the current document is saved.
Public propertyBookmarks
Gets the bookmarks collection of the document.
Public propertyCompressionLevel
Gets or sets the PDF document compression level
Public propertyDocumentInformation
Offers access to the document information object where the document's title, subject, keywords, etc can be set.
Public propertyFonts
Gets the document fonts collection.
Public propertyFooterTemplate
Represents the default PDF document footer template. This footer is automatically considered when calculating the available space for rendering in a PDF page. This template is automatically docked to the bottom of the PDF page.
Public propertyHeaderTemplate
Represents the default PDF document header template. This header is automatically considered when calculating the available space for drawing in a PDF page. This template is automatically docked to the top of the PDF page.
Public propertyStatic memberHtmlToPdfConcurrencyLevel
This static parameter gives the maximum number of threads in the current .NET application domain that can convert HTML to PDF simultaneously. This parameter must be set before the first conversion performed in the current application domain. When this property is set with a negative value or zero the concurrency level is maximum. The default value is 4.
Public propertyJpegCompressionEnabled
Gets or sets a flag indicating if the JPEG compression is enabled or not for the images in the generated PDF. By default the JPEG compression is enabled to reduce the size of the generated PDF. When the JPEG compression is enabled the quality of the images in the generated PDF is lower than the quality of the original images in the HTML document, function of the JpegCompressionLevel parameter. When the JpegCompressionLevel is increased, the quality of the images in PDF decreases.
Public propertyJpegCompressionLevel
Gets or sets the compression level of images in the generated PDF as an integer value between 0 and 100. This property has effect only when the JpegCompressionEnabled is true. When the JpegCompressionLevel is 0, the compression rate is the lowest and the quality of the images is the best. When the JpegCompressionLevel is 100, the compression rate is the highest and quality of the images in PDF is the worst. The default JPEG compression level is 10, which should offer a good balance between the compression rate and the quality of the images in PDF.
Public propertyLeftTemplate
Represents the default PDF document left template. This left template is automatically considered when calculating the available space for rendering in a PDF page. This template is automatically docked to the left side of the PDF page.
Public propertyMargins
The default document margins. The new pages will use the default margins if no marings is specified
Public propertyOpenAction
The Go To or JavaScript action to be performed when the PDF document is opened.
Public propertyPages
Gets the document pages collection.
Public propertyRightTemplate
Represents the default PDF document right template. This right template is automatically considered when calculating the available space for rendering in a PDF page. This template is automatically docked to the right side of the PDF page.
Public propertySecurity
Offers access to security features of the PDF document like encryption and digital signatures.
Public propertyTemplates
Gets the document templates collection.
Public propertyTransparencyEnabled
Gets or sets a flag indicating if the transparency is enabled in the generated PDF document. Default value is true. This property can be set to false to eliminate the additional flattening time when the document is sent to the printer from Adobe Reader viewer.
Public propertyUseCrossRefStreams
When this property is true, the generated PDF will store the PDF cross-reference table and PDF trailer in compressed cross-reference streams and therefore the generated PDF document will be smaller in size. Set this false for compatibility with third party tools unable to understand the cross-reference streams. The default value is false for the new documents.
Public propertyViewerPreferences
Offers access to the viewer preferences settings for the document.
Public propertyxDf
Internal use only
Top
See Also