Click or drag to resize
Pdftools logo

Document Properties

The Document type exposes the following members.

Properties
 NameDescription
Public propertyAllEmbeddedFiles

Plain embedded, associated, and attached files

This read-only list contains the union of all plain embedded files, associated files, and files contained in file attachment annotations. This is the list of files contained in a PDF as presented in a PDF viewer.

This list does not support appending.

Public propertyAssociatedFiles

Document-associated files

This list contains associated files, whose associated object is the document.

If the document is writable, then it is possible to append new file references to the list. Every file reference object can occur at most once in this list.

Appending to this list results in a Conformance error if the document's conformance is neither PDF/A-3 nor can be upgraded to PDF 2.0.

Public propertyConformance

The claimed conformance of the document.

This method only returns the claimed conformance level, the document is not validated.
Public propertyFormFields

The form fields of the document

This list contains all AcroForm form fields that belong to this document. Adding to this list results in an error:
  • IllegalState if the list has already been closed
  • UnsupportedOperation if the document is read-only
  • IllegalArgument
    • if the given form field node is
    • if the given form field node has already been closed
    • if the given form field node does not belong to the same document as the list
    • if the given form field node has already been added to a form field node list
    • if the given form field node's identifier equals an identifier of one of the form field nodes in this list
This list does not support removing elements or setting elements or clearing.
Public propertyMetadata

The metadata of the document.

If the document is writable, the metadata object will be writable too and all changes to the metadata object are reflected in the document.
Public propertyOpenDestination The destination that is displayed when the document is opened.
Public propertyOutline The document outline, also known as "Bookmarks".
Public propertyOutputIntent

The output intent of the document.

The output intent specifies a color profile that characterizes the intended output device. It is used to render device colors on devices other than the intended output device.
Public propertyPages

The pages of the document.

If the document is writable, it is possible to append new pages to the end of the list.
Public propertyPermissions The permissions in force for this document. This property is if the document is not encrypted.
Public propertyPlainEmbeddedFiles

Plain embedded files

This list contains plain embedded files, i.e., files that are embedded in this document without having a specific association (AssociatedFiles), and without being contained in any FileAttachment.

If the document is writable, then it is possible to append new file references to the list. Every file reference object can occur at most once in this list.

For PDF/A-3 documents, appending to this list results in a Conformance error.

Public propertySignatureFields

The signature fields of the document

Signature fields are a special kind of form fields, that can contain digital signatures.
Public propertyViewerSettings The settings to use when opening the document in a viewer.
Top
See Also