Class PdfWriter.PdfTrailer

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    PdfWriter

    public static class PdfWriter.PdfTrailer
    extends PdfDictionary
    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).

    See Also:
    Serialized Form
    • Field Detail

      • offset

        long offset
    • Constructor Detail

      • PdfTrailer

        public PdfTrailer​(int size,
                          long offset,
                          PdfIndirectReference root,
                          PdfIndirectReference info,
                          PdfIndirectReference encryption,
                          PdfObject fileID,
                          long prevxref)
        Constructs a PDF-Trailer.
        Parameters:
        size - the number of entries in the PdfCrossReferenceTable
        offset - offset of the PdfCrossReferenceTable
        root - an indirect reference to the root of the PDF document
        info - an indirect reference to the info object of the PDF document
        encryption -
        fileID -
        prevxref -
    • Method Detail

      • toPdf

        public void toPdf​(PdfWriter writer,
                          java.io.OutputStream os)
                   throws java.io.IOException
        Returns the PDF representation of this PdfObject.
        Overrides:
        toPdf in class PdfDictionary
        Parameters:
        writer -
        os -
        Throws:
        java.io.IOException