Optionalentries: Protected OptionalcachedProtectedimmutableIndicates whether the object is immutable (cannot be modified)
ProtectedmodifiedIndicates whether the object has been modified. By default, assume it has been modified because it's a new object
OptionalpostOptional tokens to prepend or append during serialization
OptionalpreOptional tokens to prepend or append during serialization
StaticNONEStaticPNG_StaticPNG_StaticPNG_StaticPNG_StaticPNG_StaticPNG_StaticTIFFStaticXREF_Returns true if this object's serialized form ends with a self-delimiting
character (e.g., ), >, ], >>). Such objects do not require trailing
whitespace before the next token.
The type of this PDF object
Creates a deep clone of the object
Creates a deep clone of the object. Override this method in subclasses to ensure all properties are cloned correctly
Returns an iterator for the dictionary entries. Each entry is a tuple of [key string, value].
Compares this object to another for equality based on their token representations
Optionalother: PdfObjectIndicates whether the object is immutable (cannot be modified)
Indicates whether the object has been modified. Override this method if the modified state is determined differently
Sets the immutable state of the object
Optionalimmutable: booleanSets the modified state of the object. Override this method if the modified state is determined differently
Optionalmodified: booleanSerializes the document to a Base64-encoded string.
A promise that resolves to the PDF document as a Base64 string
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
StaticfromStaticfromOptionaldict: PdfDictionary<PdfDictionaryEntries>
Cached byte representation of the object, if available