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

NameTypeAccessDescription
dirtybooleanReadReturns {@code true} if this object was modified since loading.
indirectbooleanReadReturns whether this object is an indirect object (has an object key).
objectKeyCOSObjectKeyReadReturns the indirect object key, or {@code null} for direct objects.

Methods

SignatureDescription
isDirty()booleanReturns {@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>)TAccept a visitor for type-safe traversal.
isIndirect()booleanReturns whether this object is an indirect object (has an object key).
getObjectKey()COSObjectKeyReturns the indirect object key, or {@code null} for direct objects.
setObjectKey(key: COSObjectKey)Sets the indirect object key.

See Also