com.itextpdf.text.pdf
Class PdfLiteral
java.lang.Object
com.itextpdf.text.pdf.PdfObject
com.itextpdf.text.pdf.PdfLiteral
public class PdfLiteral
- extends PdfObject
a Literal
Fields inherited from class com.itextpdf.text.pdf.PdfObject |
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type |
Methods inherited from class com.itextpdf.text.pdf.PdfObject |
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, toString, type |
PdfLiteral
public PdfLiteral(String text)
PdfLiteral
public PdfLiteral(byte[] b)
PdfLiteral
public PdfLiteral(int size)
PdfLiteral
public PdfLiteral(int type,
String text)
PdfLiteral
public PdfLiteral(int type,
byte[] b)
toPdf
public void toPdf(PdfWriter writer,
OutputStream os)
throws IOException
- Description copied from class:
PdfObject
- Writes the PDF representation of this
PdfObject
as an
array of byte
s to the writer.
- Overrides:
toPdf
in class PdfObject
- Parameters:
writer
- for backwards compatibilityos
- The OutputStream
to write the bytes to.
- Throws:
IOException
getPosition
public long getPosition()
- Getter for property position.
- Returns:
- Value of property position.
getPosLength
public int getPosLength()
- Getter for property posLength.
- Returns:
- Value of property posLength.
Copyright © 2013. All Rights Reserved.