public abstract class PdfPrimitiveObject extends PdfObject
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
content |
protected boolean |
directOnly |
ARRAY, BOOLEAN, DICTIONARY, FLUSHED, FORBID_RELEASE, FREE, INDIRECT_REFERENCE, indirectReference, LITERAL, MODIFIED, MUST_BE_FLUSHED, MUST_BE_INDIRECT, NAME, NULL, NUMBER, ORIGINAL_OBJECT_STREAM, READ_ONLY, READING, STREAM, STRING, UNENCRYPTED| Modifier | Constructor and Description |
|---|---|
protected |
PdfPrimitiveObject() |
protected |
PdfPrimitiveObject(boolean directOnly) |
protected |
PdfPrimitiveObject(byte[] content)
Initialize PdfPrimitiveObject from the passed bytes.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
compareContent(PdfPrimitiveObject o) |
protected void |
copyContent(PdfObject from, PdfDocument document, ICopyFilter copyFilter)
Copies object content from object 'from'.
|
protected abstract void |
generateContent() |
protected byte[] |
getInternalContent() |
protected boolean |
hasContent() |
PdfObject |
makeIndirect(PdfDocument document, PdfIndirectReference reference)
Marks object to be saved as indirect.
|
PdfObject |
setIndirectReference(PdfIndirectReference indirectReference) |
checkState, clearState, clone, clone, copyContent, copyTo, copyTo, copyTo, copyTo, flush, flush, getIndirectReference, getType, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isReleaseForbidden, isStream, isString, makeIndirect, newInstance, release, setModified, setStateprotected PdfPrimitiveObject()
protected PdfPrimitiveObject(boolean directOnly)
protected PdfPrimitiveObject(byte[] content)
content - byte content, shall not be null.
protected final byte[] getInternalContent()
protected boolean hasContent()
protected abstract void generateContent()
public PdfObject makeIndirect(PdfDocument document, PdfIndirectReference reference)
PdfObject
makeIndirect in class PdfObject
document - a document the indirect reference will belong to.
reference - indirect reference which will be associated with this document
public PdfObject setIndirectReference(PdfIndirectReference indirectReference)
setIndirectReference in class PdfObject
protected void copyContent(PdfObject from, PdfDocument document, ICopyFilter copyFilter)
PdfObject
copyContent in class PdfObject
from - object to copy content from.
document - document to copy object to.
copyFilter - ICopyFilter a filter that will apply on dictionaries and array Use NullCopyFilter for no filtering
protected int compareContent(PdfPrimitiveObject o)
Copyright © 1998–2022 iText Group NV. All rights reserved.