COSName
Overview
COSName is a class in Aspose.Pdf FOSS for Java.
Inherits from: COSBase, Comparable<COSName>.
PDF name object (§7.3.5, ISO 32000-1:2008).
Properties
| Name | Type | Access | Description |
|---|---|---|---|
name | String | Read | Returns the decoded name (without leading ‘/’). |
value | String | Read | Returns the decoded name value. |
TYPE | COSName | Read | |
SUBTYPE | COSName | Read | |
PAGES | COSName | Read | |
PAGE | COSName | Read | |
FONT | COSName | Read | |
LENGTH | COSName | Read | |
FILTER | COSName | Read | |
FLATE_DECODE | COSName | Read | |
LZW_DECODE | COSName | Read | |
ASCII_HEX_DECODE | COSName | Read | |
ASCII85_DECODE | COSName | Read | |
RUN_LENGTH_DECODE | COSName | Read | |
CCITTFAX_DECODE | COSName | Read | |
DCT_DECODE | COSName | Read | |
JPX_DECODE | COSName | Read | |
WIDTH | COSName | Read | |
HEIGHT | COSName | Read | |
RESOURCES | COSName | Read | |
CONTENTS | COSName | Read | |
MEDIABOX | COSName | Read | |
CROPBOX | COSName | Read | |
TRIMBOX | COSName | Read | |
BLEEDBOX | COSName | Read | |
ARTBOX | COSName | Read | |
COUNT | COSName | Read | |
KIDS | COSName | Read | |
PARENT | COSName | Read | |
CATALOG | COSName | Read | |
ROOT | COSName | Read | |
SIZE | COSName | Read | |
PREV | COSName | Read | |
INFO | COSName | Read | |
ID | COSName | Read | |
ENCRYPT | COSName | Read | |
DECODE_PARMS | COSName | Read | |
ENCODING | COSName | Read | |
BASE_FONT | COSName | Read | |
FIRST_CHAR | COSName | Read | |
LAST_CHAR | COSName | Read | |
WIDTHS | COSName | Read | |
TO_UNICODE | COSName | Read | |
FONT_DESCRIPTOR | COSName | Read | |
XOBJECT | COSName | Read | |
IMAGE | COSName | Read | |
FORM | COSName | Read | |
BBOX | COSName | Read | |
MATRIX | COSName | Read | |
ANNOTS | COSName | Read | |
RECT | COSName | Read | |
ROTATE | COSName | Read | |
S | COSName | Read | |
N | COSName | Read | |
PREDICTOR | COSName | Read | |
COLUMNS | COSName | Read | |
COLORS | COSName | Read | |
BITS_PER_COMPONENT | COSName | Read | |
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 |
|---|---|
of(name: String) → COSName | Returns a COSName for the given decoded name. |
fromPdfToken(pdfToken: String) → COSName | Decodes a PDF name token (with {@code #XX} hex escapes) to a COSName. |
getName() → String | Returns the decoded name (without leading ‘/’). |
getValue() → String | Returns the decoded name value. |
writeTo(os: OutputStream) | |
accept(visitor: ICOSVisitor<T>) → T | |
compareTo(other: COSName) → int | |
equals(o: Object) → boolean | |
hashCode() → int | |
toString() → String | |
isDirty() → boolean | Returns {@code true} if this object was modified since loading. |
setDirty(dirty: boolean) | Sets the dirty flag on this object. |
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. |