Creates a new PDF revision.
Optionaloptions: { locked?: boolean; objects?: PdfObject[]; prev?: PdfXrefLookup | PdfRevision }Configuration options for the revision
Optionallocked?: booleanWhether the revision should be locked initially
Optionalobjects?: PdfObject[]Initial objects for this revision
Optionalprev?: PdfXrefLookup | PdfRevisionPrevious revision or xref lookup to link to
Whether this revision is locked (cannot be modified)
ProtectedmodifiedIndicates whether the object has been modified. By default, assume it has been modified because it's a new object
Objects contained in this revision
OptionalpostOptional tokens to prepend or append during serialization
OptionalpreOptional tokens to prepend or append during serialization
Cross-reference lookup table for this revision
The type of this PDF object
Gets the trailer dictionary for this revision.
The trailer dictionary containing document metadata references
Adds objects to the revision.
Objects to add to the revision
Creates a deep copy of this revision.
A cloned PdfRevision instance
Checks if an object reference exists in this revision.
The object to check for
True if the exact object instance exists in this revision
Removes objects from the revision.
Objects to remove from the revision
Compares this object to another for equality based on their token representations
Optionalother: PdfObjectChecks if an equivalent object exists in this revision (by value equality).
The object to check for
True if an equal object exists in this revision
Indicates whether the object has been modified. Override this method if the modified state is determined differently
Sets the modified state of the object. Override this method if the modified state is determined differently
Links this revision to a previous revision's cross-reference table.
The previous revision's xref lookup or revision
Sorts objects by their insertion order. Indirect objects are placed before other objects.
Converts the object to a ByteArray, optionally padding to a specified length
OptionalpadTo: numberProtectedtokenizeTokenizes the object into an array of PdfTokens
Converts the object to a string representation
Converts the object to an array of PdfTokens, including any pre or post tokens
Adds objects to the beginning of the revision's object list.
Objects to add at the beginning
Updates the revision by sorting objects and updating the xref table.
Represents a single revision of a PDF document. PDF documents can have multiple revisions for incremental updates, where each revision contains its own set of objects and cross-reference table.