adobe.pdfservices.operation.pdfjobs.params.replace_pages package
Submodules
adobe.pdfservices.operation.pdfjobs.params.replace_pages.replace_pages_params module
- class adobe.pdfservices.operation.pdfjobs.params.replace_pages.replace_pages_params.ReplacePagesParams(base_asset: Asset)
Bases:
PDFServicesJobParams
Parameters for replacing pages of a pdf using
ReplacePagesJob
Constructs a new
ReplacePagesParams
instance.- Parameters:
base_asset (Asset) – The base asset to be used for replacing pages, can not be None.
- Returns:
A new instance of ReplacePagesParams
- Return type:
- add_pages_to_replace(input_asset: ~adobe.pdfservices.operation.io.asset.Asset, base_page: int, *, page_ranges: ~adobe.pdfservices.operation.pdfjobs.params.page_ranges.PageRanges = <adobe.pdfservices.operation.pdfjobs.params.page_ranges.PageRanges object>)
- Parameters:
input_asset (Asset) – a PDF file for insertion
page_ranges (PageRanges) – page ranges of the input PDF file
base_page (int) – page of the base PDF file
- get_assets_to_replace()
- Returns:
Returns the mapping of base Asset’s page number and Asset to be replaced along with PageRanges.