Class PdfPrimitiveObject

    • Field Detail

      • content

        protected byte[] content
      • directOnly

        protected boolean directOnly
    • Constructor Detail

      • 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 Detail

      • 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.
      • 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