Class PdfPrimitiveObject

java.lang.Object
com.itextpdf.kernel.pdf.PdfObject
com.itextpdf.kernel.pdf.PdfPrimitiveObject
Direct Known Subclasses:
PdfBoolean, PdfLiteral, PdfName, PdfNull, PdfNumber, PdfString

public abstract class PdfPrimitiveObject extends PdfObject
  • Field Details

    • content

      protected byte[] content
    • directOnly

      protected boolean directOnly
  • Constructor Details

    • PdfPrimitiveObject

      protected PdfPrimitiveObject()
    • PdfPrimitiveObject

      protected PdfPrimitiveObject (boolean directOnly)
    • PdfPrimitiveObject

      protected PdfPrimitiveObject (byte[] content)
      Initialize PdfPrimitiveObject from the passed bytes.
      Parameters:
      content - byte content, shall not be null.
  • Method Details

    • getInternalContent

      protected final byte[] getInternalContent()
    • hasContent

      protected boolean hasContent()
    • generateContent

      protected abstract void generateContent()
    • makeIndirect

      public PdfObject makeIndirect (PdfDocument document, PdfIndirectReference reference)
      Description copied from class: PdfObject
      Marks object to be saved as indirect.
      Overrides:
      makeIndirect in class PdfObject
      Parameters:
      document - a document the indirect reference will belong to.
      reference - indirect reference which will be associated with this document
      Returns:
      object itself.
    • setIndirectReference

      public PdfObject setIndirectReference (PdfIndirectReference indirectReference)
      Overrides:
      setIndirectReference in class PdfObject
    • copyContent

      protected void copyContent (PdfObject from, PdfDocument document, ICopyFilter copyFilter)
      Description copied from class: PdfObject
      Copies object content from object 'from'.
      Overrides:
      copyContent in class PdfObject
      Parameters:
      from - object to copy content from.
      document - document to copy object to.
      copyFilter - ICopyFilter a filter that will apply on dictionaries and array Use NullCopyFilter for no filtering
    • compareContent

      protected int compareContent (PdfPrimitiveObject o)