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)
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, copyTo, copyTo, flush, flush, getIndirectReference, getType, isArray, isBoolean, isDictionary, isFlushed, isIndirect, isIndirectReference, isLiteral, isModified, isName, isNull, isNumber, isStream, isString, makeIndirect, newInstance, release, setModified, setState
protected 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.
public PdfObject setIndirectReference(PdfIndirectReference indirectReference)
setIndirectReference
in class PdfObject
protected void copyContent(PdfObject from, PdfDocument document)
PdfObject
copyContent
in class PdfObject
from
- object to copy content from.
document
- document to copy object to.
protected int compareContent(PdfPrimitiveObject o)
Copyright © 1998–2017 iText Group NV. All rights reserved.