Class ReplacePagesParams.Builder
- java.lang.Object
-
- com.adobe.pdfservices.operation.pdfjobs.params.replacepages.ReplacePagesParams.Builder
-
- Enclosing class:
- ReplacePagesParams
public static class ReplacePagesParams.Builder extends Object
Builds aReplacePagesParams
instance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 fileReplacePagesParams.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.ReplacePagesParams
build()
Returns a newReplacePagesParams
instance built from the current state of this builder.
-
-
-
Constructor Detail
-
Builder
public Builder(Asset asset)
Constructs aReplacePagesParams.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 nullbasePage
- 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 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 nullpageRanges
- page ranges of the input PDF file; can not be null or emptybasePage
- page of the base PDF file
-
build
public ReplacePagesParams build()
Returns a newReplacePagesParams
instance built from the current state of this builder.- Returns:
- a new
ReplacePagesParams
instance
-
-