Class PdfCopyFieldsImp

    • Field Detail

      • iTextTag

        private static final PdfName iTextTag
      • zero

        private static final java.lang.Integer zero
      • readers

        java.util.ArrayList readers
      • readers2intrefs

        java.util.HashMap readers2intrefs
      • pages2intrefs

        java.util.HashMap pages2intrefs
      • visited

        java.util.HashMap visited
      • fields

        java.util.ArrayList fields
      • fieldTree

        java.util.HashMap fieldTree
      • pageRefs

        java.util.ArrayList pageRefs
      • pageDics

        java.util.ArrayList pageDics
      • newBookmarks

        protected java.util.List newBookmarks
      • closing

        boolean closing
      • tabOrder

        private java.util.HashMap tabOrder
      • calculationOrder

        private java.util.ArrayList calculationOrder
      • calculationOrderRefs

        private java.util.ArrayList calculationOrderRefs
      • widgetKeys

        protected static final java.util.HashMap widgetKeys
      • fieldKeys

        protected static final java.util.HashMap fieldKeys
    • Method Detail

      • propagate

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

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

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

        public void close()
        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 referencetable is composed and everything is written to the outputstream embedded in a Trailer.

        Specified by:
        close in interface DocListener
        Overrides:
        close in class PdfWriter
      • addPageOffsetToField

        void addPageOffsetToField​(java.util.HashMap fd,
                                  int pageOffset)
      • createWidgets

        void createWidgets​(java.util.ArrayList list,
                           AcroFields.Item item)
      • mergeField

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

        void mergeWithMaster​(java.util.HashMap fd)
      • mergeFields

        void mergeFields()
      • getPageReference

        public PdfIndirectReference getPageReference​(int page)
        Description copied from class: PdfWriter
        Gets 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
      • isVisited

        protected boolean isVisited​(PdfReader reader,
                                    int number,
                                    int generation)
      • setOutlines

        public void setOutlines​(java.util.List outlines)
        Sets the bookmarks. The list structure is defined in SimpleBookmark#.
        Parameters:
        outlines - the bookmarks or null to remove any
      • openDoc

        public void openDoc()