Class ReplacePagesParams.Builder

    • Constructor Detail

      • Builder

        public Builder​(Asset asset)
        Constructs a ReplacePagesParams.Builder instance.
    • Method Detail

      • addPagesForReplace

        public ReplacePagesParams.Builder addPagesForReplace​(Asset inputAsset,
                                                             Integer basePage)
        Adds all the pages of the input PDF file to be replaced at the specified page of the base PDF file.

        This method can be invoked multiple times with the same or different input PDF files.

        Parameters:
        inputAsset - a PDF file for insertion; can not be null
        basePage - page of the base PDF file
      • addPagesForReplace

        public ReplacePagesParams.Builder addPagesForReplace​(Asset inputAsset,
                                                             PageRanges pageRanges,
                                                             Integer basePage)
        Adds the specified pages of the input PDF file to be replaced at the specified page of the base PDF file

        This method can be invoked multiple times with the same or different input PDF files.

        Parameters:
        inputAsset - a PDF file for insertion; can not be null
        pageRanges - page ranges of the input PDF file; can not be null or empty
        basePage - page of the base PDF file