Click or drag to resize
Pdftools logo

FileReference Properties

The FileReference type exposes the following members.

Properties
 NameDescription
Public propertyAssociationRelationship

The file's association relationship

This property is if the file is not associated with any object. When associating a file reference with an object such as the document or a page, then this property defines the relationship between the file and the object. Typical values are:
  • "Source": used if this file is the original source material for the associated content.
  • "Data": used if this file represents information used to derive a visual presentation such as for a table or a graph.
  • "Alternative": used if this file is an alternative representation of content, for example audio.
  • "Supplement": used if this file represents a supplemental representation of the original source or data that may be more easily consumable (e.g., a MathML version of an equation).
  • "EncryptedPayload": used if this file is an encrypted payload document that should be displayed to the user if the PDF processor has the cryptographic filter needed to decrypt the document.
  • "FormData": used if this file is the data associated with form fields of this PDF.
  • "Schema": used if this file is a schema definition for the associated object.
  • "Unspecified": used when the relationship is not known.
Public propertyData

The file's stream

Public propertyDescription

The file's description

For embedded files, this is the description of the file presented to the user in the list of embedded files.
Public propertyMediaType

The file's MIME type

Public propertyModificationDate

The file's date of last modification

Public propertyName

The file name

For embedded files, this is the name presented to the user in a the list of embedded files.
Top
See Also