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 aInsertPagesParamsinstance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InsertPagesParams.BuilderaddPagesToInsertAt(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.BuilderaddPagesToInsertAt(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.InsertPagesParamsbuild()Returns a newInsertPagesParamsinstance built from the current state of this builder.
-
-
-
Constructor Detail
-
Builder
public Builder(Asset asset)
Constructs aBuilderinstance.
-
-
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 newInsertPagesParamsinstance built from the current state of this builder.- Returns:
- a new
InsertPagesParamsinstance
-
-