Class PdfCopyFieldsImp

    • Field Detail

      • iTextTag

        private static final PdfName iTextTag
        Deprecated.
      • zero

        private static final java.lang.Integer zero
        Deprecated.
      • readers

        java.util.ArrayList<PdfReader> readers
        Deprecated.
      • fields

        java.util.ArrayList<AcroFields> fields
        Deprecated.
      • fieldTree

        java.util.HashMap<java.lang.String,​java.lang.Object> fieldTree
        Deprecated.
      • pageDics

        java.util.ArrayList<PdfDictionary> pageDics
        Deprecated.
      • closing

        boolean closing
        Deprecated.
      • tabOrder

        private java.util.HashMap<PdfArray,​java.util.ArrayList<java.lang.Integer>> tabOrder
        Deprecated.
      • calculationOrder

        private java.util.ArrayList<java.lang.String> calculationOrder
        Deprecated.
      • calculationOrderRefs

        private java.util.ArrayList<java.lang.Object> calculationOrderRefs
        Deprecated.
      • hasSignature

        private boolean hasSignature
        Deprecated.
      • needAppearances

        private boolean needAppearances
        Deprecated.
      • mergedRadioButtons

        private java.util.HashSet<java.lang.Object> mergedRadioButtons
        Deprecated.
      • COUNTER

        protected Counter COUNTER
        Deprecated.
      • widgetKeys

        protected static final java.util.HashMap<PdfName,​java.lang.Integer> widgetKeys
        Deprecated.
      • fieldKeys

        protected static final java.util.HashMap<PdfName,​java.lang.Integer> fieldKeys
        Deprecated.
    • Method Detail

      • updateCalculationOrder

        protected void updateCalculationOrder​(PdfReader reader)
        Deprecated.
        Since:
        2.1.5; before 2.1.5 the method was private
      • propagate

        void propagate​(PdfObject obj,
                       PdfIndirectReference refo,
                       boolean restricted)
                throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • branchForm

        protected PdfArray branchForm​(java.util.HashMap<java.lang.String,​java.lang.Object> level,
                                      PdfIndirectReference parent,
                                      java.lang.String fname)
                               throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • createAcroForms

        protected void createAcroForms()
                                throws java.io.IOException
        Deprecated.
        Throws:
        java.io.IOException
      • close

        public void close()
        Deprecated.
        Description copied from class: PdfWriter
        Signals that the Document was closed and that no other Elements will be added.

        The pages-tree is built and written to the outputstream. A Catalog is constructed, as well as an Info-object, the reference table is composed and everything is written to the outputstream embedded in a Trailer.

        Specified by:
        close in interface DocListener
        Overrides:
        close in class PdfWriter
        See Also:
        DocWriter.close()
      • closeIt

        protected void closeIt()
                        throws java.io.IOException
        Deprecated.
        Creates the new PDF by merging the fields and forms.
        Throws:
        java.io.IOException
      • addPageOffsetToField

        void addPageOffsetToField​(java.util.Map<java.lang.String,​AcroFields.Item> fd,
                                  int pageOffset)
        Deprecated.
      • createWidgets

        void createWidgets​(java.util.ArrayList<java.lang.Object> list,
                           AcroFields.Item item)
        Deprecated.
      • mergeField

        void mergeField​(java.lang.String name,
                        AcroFields.Item item)
        Deprecated.
      • mergeWithMaster

        void mergeWithMaster​(java.util.Map<java.lang.String,​AcroFields.Item> fd)
        Deprecated.
      • mergeFields

        void mergeFields()
        Deprecated.
      • getPageReference

        public PdfIndirectReference getPageReference​(int page)
        Deprecated.
        Description copied from class: PdfWriter
        Use this method to get a reference to a page existing or not. If the page does not exist yet the reference will be created in advance. If on closing the document, a page number greater than the total number of pages was requested, an exception is thrown.
        Overrides:
        getPageReference in class PdfWriter
        Parameters:
        page - the page number. The first page is 1
        Returns:
        the reference to the page
      • setVisited

        protected boolean setVisited​(PRIndirectReference ref)
        Deprecated.
        Sets a reference to "visited" in the copy process.
        Parameters:
        ref - the reference that needs to be set to "visited"
        Returns:
        true if the reference was set to visited
      • isVisited

        protected boolean isVisited​(PRIndirectReference ref)
        Deprecated.
        Checks if a reference has already been "visited" in the copy process.
        Parameters:
        ref - the reference that needs to be checked
        Returns:
        true if the reference was already visited
      • isVisited

        protected boolean isVisited​(PdfReader reader,
                                    int number,
                                    int generation)
        Deprecated.
      • isPage

        protected boolean isPage​(PRIndirectReference ref)
        Deprecated.
        Checks if a reference refers to a page object.
        Parameters:
        ref - the reference that needs to be checked
        Returns:
        true is the reference refers to a page object.
      • openDoc

        public void openDoc()
        Deprecated.