public class PdfLiteral extends PdfObject
Constructor and Description |
---|
PdfLiteral(byte[] b) |
PdfLiteral(int size) |
PdfLiteral(int type, byte[] b) |
PdfLiteral(int type, String text) |
PdfLiteral(String text) |
Modifier and Type | Method and Description |
---|---|
long |
getPosition()
Getter for property position.
|
int |
getPosLength()
Getter for property posLength.
|
void |
toPdf(PdfWriter writer, OutputStream os)
Writes the PDF representation of this PdfObject as an array of byte s to the writer.
|
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toString, type
public PdfLiteral(String text)
public PdfLiteral(byte[] b)
public PdfLiteral(int size)
public PdfLiteral(int type, String text)
public PdfLiteral(int type, byte[] b)
public void toPdf(PdfWriter writer, OutputStream os) throws IOException
PdfObject
PdfObject
as an array of byte
s to the writer.
toPdf
in class PdfObject
writer
- for backwards compatibility
os
- The OutputStream
to write the bytes to.
IOException
public long getPosition()
public int getPosLength()
Copyright © 1998–2022. All rights reserved.