adobe.pdfservices.operation.pdfjobs.params.insert_pages package

Submodules

adobe.pdfservices.operation.pdfjobs.params.insert_pages.insert_pages_params module

class adobe.pdfservices.operation.pdfjobs.params.insert_pages.insert_pages_params.InsertPagesParams(base_asset: Asset)

Bases: PDFServicesJobParams

Parameters for inserting pages in a PDF using InsertPagesJob

Constructs a new InsertPagesParams instance.

Parameters:

base_asset (Asset) – Base asset into which the pages are to be inserted.

add_pages_to_insert(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>)

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.

All the pages of the input PDF file will be inserted at the specified page of the base PDF file if page_ranges is not specified.

Parameters:
  • input_asset (Asset) – A PDF file for insertion; can not be None.

  • base_page (int) – Page of the base PDF file; can not be None.

  • page_ranges (PageRanges) – Page ranges of the input PDF file. (Optional, use key-value)

get_assets_to_insert()
Returns:

Returns the mapping of base Asset’s page number and Asset to be inserted along with PageRanges .

Return type:

dict

get_base_asset()
Returns:

base PDF Asset to which pages will be inserted.

Return type:

Asset

Module contents