COSBase
Overview
COSBase is a class in Aspose.Pdf FOSS for Java.
Abstract base class for all nine PDF COS object types (§7.3, ISO 32000-1:2008).
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 | COSObjectKey | 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: ICOSVisitor<T>) → T | Accept a visitor for type-safe traversal. |
isIndirect() → boolean | Returns whether this object is an indirect object (has an object key). |
getObjectKey() → COSObjectKey | Returns the indirect object key, or {@code null} for direct objects. |
setObjectKey(key: COSObjectKey) | Sets the indirect object key. |