Class InsertPagesParams.Builder
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.params.insertpages.InsertPagesParams.Builder
-
- Enclosing class:
- InsertPagesParams
public static class InsertPagesParams.Builder extends Object
Builds aInsertPagesParams
instance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 fileInsertPagesParams.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.InsertPagesParams
build()
Returns a newInsertPagesParams
instance built from the current state of this builder.
-
-
-
Constructor Detail
-
Builder
public Builder(Asset asset)
Constructs aBuilder
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 nullbasePage
- 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 fileThis 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 newInsertPagesParams
instance built from the current state of this builder.- Returns:
- a new
InsertPagesParams
instance
-
-