Class PdfWriter.PdfTrailer
java.lang.Object
com.aowagie.text.pdf.PdfObject
com.aowagie.text.pdf.PdfDictionary
com.aowagie.text.pdf.PdfWriter.PdfTrailer
- Enclosing class:
PdfWriter
PdfTrailer is the PDF Trailer object.
This object is described in the 'Portable Document Format Reference Manual version 1.3' section 5.16 (page 59-60).
-
Field Summary
FieldsFields inherited from class PdfDictionary
CATALOG, hashMap, OUTLINES, PAGEFields inherited from class PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type -
Constructor Summary
ConstructorsConstructorDescriptionPdfTrailer(int size, int offset, PdfIndirectReference root, PdfIndirectReference info, PdfIndirectReference encryption, PdfObject fileID, int prevxref) Constructs a PDF-Trailer. -
Method Summary
Modifier and TypeMethodDescriptionvoidtoPdf(PdfWriter writer, OutputStream os) Returns the PDF representation of thisPdfObject.Methods inherited from class PdfDictionary
contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, remove, size, toStringMethods inherited from class PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, setContent, setIndRef, type
-
Field Details
-
offset
private final int offset
-
-
Constructor Details
-
PdfTrailer
PdfTrailer(int size, int offset, PdfIndirectReference root, PdfIndirectReference info, PdfIndirectReference encryption, PdfObject fileID, int prevxref) Constructs a PDF-Trailer.- Parameters:
size- the number of entries in thePdfCrossReferenceTableoffset- offset of thePdfCrossReferenceTableroot- an indirect reference to the root of the PDF documentinfo- an indirect reference to the info object of the PDF documentencryption-fileID-prevxref-
-
-
Method Details
-
toPdf
Returns the PDF representation of thisPdfObject.- Overrides:
toPdfin classPdfDictionary- Parameters:
writer-os-- Throws:
IOException
-