PdfBase
Overview
PdfBase is a class in Aspose.PDF FOSS for Java.
Abstract base class for all nine PDF PDF object types (§7.3, ISO 32000-1:2008).
This class provides 7 methods for working with PdfBase objects in Java programs.
Available methods include: accept, getObjectKey, isDirty, isIndirect, setDirty, setObjectKey, writeTo.
All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package.
Properties: dirty, indirect, objectKey.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
dirty | boolean | Read | Returns {@code true} if this object was modified since loading. |
indirect | boolean | Read | Returns whether this object is an indirect object (has an object key). |
objectKey | PdfObjectKey | Read | Returns the indirect object key, or {@code null} for direct objects. |
Methods
| Signature | Description |
|---|---|
isDirty() → boolean | Returns {@code true} if this object was modified since loading. |
setDirty(dirty: boolean) | Sets the dirty flag on this object. |
writeTo(os: OutputStream) | Serialize this object to PDF syntax (ASCII bytes). |
accept(visitor: IPdfVisitor<T>) → T | Accept a visitor for type-safe traversal. |
isIndirect() → boolean | Returns whether this object is an indirect object (has an object key). |
getObjectKey() → PdfObjectKey | Returns the indirect object key, or {@code null} for direct objects. |
setObjectKey(key: PdfObjectKey) | Sets the indirect object key. |