Class InsertPagesParams.Builder

    • Constructor Detail

      • Builder

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

      • addPagesToInsertAt

        public InsertPagesParams.Builder addPagesToInsertAt​(Asset inputAsset,
                                                            Integer basePage)
        Adds all the pages of the input PDF file to be inserted 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
      • addPagesToInsertAt

        public InsertPagesParams.Builder addPagesToInsertAt​(Asset inputAsset,
                                                            PageRanges pageRanges,
                                                            Integer basePage)
        Adds the specified pages of the input PDF file to be inserted 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.
        basePage - page of the base PDF file; can not be null.
      • build

        public InsertPagesParams build()
        Returns a new InsertPagesParams instance built from the current state of this builder.
        Returns:
        a new InsertPagesParams instance