Skip to content

# PDFDocumentFeatures

Namespace: O2S.Components.PDF4NET

Specifies the available features that are supported for a PDFFixedDocument created from external content, a file or a stream.

    public class PDFDocumentFeatures

Inheritance Object → PDFDocumentFeatures

Remarks

When a feature is disabled its content is not loaded from disk and it cannot be modified in the PDFFixedDocument object. For example if page graphics is disabled, the page content is not loaded from the file and new graphic content cannot be added to the pages loaded from the file.

## Constructors

### PDFDocumentFeatures()

Initializes a new PDFDocumentFeatures object.

    public PDFDocumentFeatures()

## Properties

### EnableDocumentFileAttachments

Gets or sets a value indicating whether document file attachments are enabled.

    public bool EnableDocumentFileAttachments { get; set; }

Property Value

Boolean
If true, the document file attachments are enabled.

Remarks

If document file attachments are not enabled, then the PDFFixedDocument.FileAttachments property will be null and new attachments cannot be created.

### EnableDocumentFormFields

Gets or sets a value indicating whether document form fields are enabled.

    public bool EnableDocumentFormFields { get; set; }

Property Value

Boolean
If true, the document form fields are enabled.

Remarks

If document form fields are not enabled, then the PDFFixedDocument.Form and PDFPage.Fields properties will be null and new form fields cannot be created.

### EnableDocumentJavaScriptBlocks

Gets or sets a value indicating whether document javascripts are enabled.

    public bool EnableDocumentJavaScriptBlocks { get; set; }

Property Value

Boolean
If true, the document javascripts are enabled.

Remarks

If document javascripts are not enabled, then the PDFFixedDocument.JavaScriptBlocks property will be null and new javascript blocks cannot be created.

### EnableDocumentNamedDestinations

Gets or sets a value indicating whether document named destinations are enabled.

    public bool EnableDocumentNamedDestinations { get; set; }

Property Value

Boolean
If true, the named destinations are enabled.

Remarks

If named destinations are not enabled, then the PDFFixedDocument.NamedDestinations property will be null and new named destinations cannot be created.

### EnableDocumentOutline

Gets or sets a value indicating whether document outline is enabled.

    public bool EnableDocumentOutline { get; set; }

Property Value

Boolean
If true, the document outline is enabled.

Remarks

If document outline is not enabled, then the PDFFixedDocument.Outline property will be null and new outline items cannot be created.

### EnablePageAnnotations

Gets or sets a value indicating whether page annotations are enabled.

    public bool EnablePageAnnotations { get; set; }

Property Value

Boolean
If true, the page annotations are enabled.

Remarks

If page annotations are not enabled, then the PDFPage.Annotations property will be null for pages loaded from the PDF file.

### EnablePageGraphics

Gets or sets a value indicating whether page graphics is enabled.

    public bool EnablePageGraphics { get; set; }

Property Value

Boolean
If true, the page graphics are enabled.

Remarks

If page graphics is not enabled, then the PDFPage.Canvas property will be null for pages loaded from the PDF file.

### EnablePages

Gets or sets a value indicating whether pages are enabled.

    public bool EnablePages { get; set; }

Property Value

Boolean
If true, the page are enabled.

Remarks

If pages are not enabled, then the PDFFixedDocument.Pages property will be null and new pages cannot be added.