PdfName

Overview

PdfName is a class in Aspose.PDF FOSS for Java. Inherits from: PdfBase, Comparable<PdfName>.

PDF name object (§7.3.5, ISO 32000-1:2008).

This class provides 15 methods for working with PdfName objects in Java programs. Available methods include: accept, compareTo, equals, fromPdfToken, getName, getObjectKey, getValue, hashCode, isDirty, isIndirect, of, setDirty, and 3 additional methods. All public members are accessible to any Java application after installing the Aspose.PDF FOSS for Java package. Properties: ANNOTS, ARTBOX, ASCII85_DECODE, ASCII_HEX_DECODE, BASE_FONT, BBOX, and 55 more.

Properties

NameTypeAccessDescription
nameStringReadReturns the decoded name (without leading ‘/’).
valueStringReadReturns the decoded name value.
TYPEPdfNameReadGets the type.
SUBTYPEPdfNameReadGets the subtype.
PAGESPdfNameReadGets the pages.
PAGEPdfNameReadGets the page.
FONTPdfNameReadGets the font.
LENGTHPdfNameReadGets the length.
FILTERPdfNameReadGets the filter.
FLATE_DECODEPdfNameReadGets the flate decode.
LZW_DECODEPdfNameReadGets the lzw decode.
ASCII_HEX_DECODEPdfNameReadGets the ascii hex decode.
ASCII85_DECODEPdfNameReadGets the ascii85 decode.
RUN_LENGTH_DECODEPdfNameReadGets the run length decode.
CCITTFAX_DECODEPdfNameReadGets the ccittfax decode.
DCT_DECODEPdfNameReadGets the dct decode.
JPX_DECODEPdfNameReadGets the jpx decode.
WIDTHPdfNameReadGets the width.
HEIGHTPdfNameReadGets the height.
RESOURCESPdfNameReadGets the resources.
CONTENTSPdfNameReadGets the contents.
MEDIABOXPdfNameReadGets the mediabox.
CROPBOXPdfNameReadGets the cropbox.
TRIMBOXPdfNameReadGets the trimbox.
BLEEDBOXPdfNameReadGets the bleedbox.
ARTBOXPdfNameReadGets the artbox.
COUNTPdfNameReadGets the count.
KIDSPdfNameReadGets the kids.
PARENTPdfNameReadGets the parent.
CATALOGPdfNameReadGets the catalog.
ROOTPdfNameReadGets the root.
SIZEPdfNameReadGets the size.
PREVPdfNameReadGets the prev.
INFOPdfNameReadGets the info.
IDPdfNameReadGets the id.
ENCRYPTPdfNameReadGets the encrypt.
DECODE_PARMSPdfNameReadGets the decode parms.
ENCODINGPdfNameReadGets the encoding.
BASE_FONTPdfNameReadGets the base font.
FIRST_CHARPdfNameReadGets the first char.
LAST_CHARPdfNameReadGets the last char.
WIDTHSPdfNameReadGets the widths.
TO_UNICODEPdfNameReadGets the to unicode.
FONT_DESCRIPTORPdfNameReadGets the font descriptor.
XOBJECTPdfNameReadGets the xobject.
IMAGEPdfNameReadGets the image.
FORMPdfNameReadGets the form.
BBOXPdfNameReadGets the bbox.
MATRIXPdfNameReadGets the matrix.
ANNOTSPdfNameReadGets the annots.
RECTPdfNameReadGets the rect.
ROTATEPdfNameReadGets the rotate.
SPdfNameReadGets the s.
NPdfNameReadGets the n.
PREDICTORPdfNameReadGets the predictor.
COLUMNSPdfNameReadGets the columns.
COLORSPdfNameReadGets the colors.
BITS_PER_COMPONENTPdfNameReadGets the bits per component.
dirtybooleanReadReturns {@code true} if this object was modified since loading.
indirectbooleanReadReturns whether this object is an indirect object (has an object key).
objectKeyPdfObjectKeyReadReturns the indirect object key, or {@code null} for direct objects.

Methods

SignatureDescription
of(name: String)PdfNameReturns a PdfName for the given decoded name.
fromPdfToken(pdfToken: String)PdfNameDecodes a PDF name token (with {@code #XX} hex escapes) to a PdfName.
getName()StringReturns the decoded name (without leading ‘/’).
getValue()StringReturns the decoded name value.
writeTo(os: OutputStream)
accept(visitor: IPdfVisitor<T>)T
compareTo(other: PdfName)int
equals(o: Object)boolean
hashCode()int
toString()String
isDirty()booleanReturns {@code true} if this object was modified since loading.
setDirty(dirty: boolean)Sets the dirty flag on this object.
isIndirect()booleanReturns whether this object is an indirect object (has an object key).
getObjectKey()PdfObjectKeyReturns the indirect object key, or {@code null} for direct objects.
setObjectKey(key: PdfObjectKey)Sets the indirect object key.

See Also