Parameters for replacing pages of a PDF using ReplacePagesJob.

Implements

Constructors

  • Constructs a new ReplacePagesParams instance.

    Parameters

    • baseAsset: Asset

      The base asset to be used for replacing pages. Cannot be undefined.

    Returns ReplacePagesParams

Properties

_assetsToReplace: Map<number, CombinePDFJobInput>
_baseAsset: Asset

Accessors

  • get assetsToReplace(): Map<number, CombinePDFJobInput>
  • Internal

    Used internally by this SDK, not intended to be called by clients.

    Returns Map<number, CombinePDFJobInput>

  • get baseAsset(): Asset
  • Returns the base PDF Asset to which pages will be replaced.

    Returns Asset

    an Asset instance

Methods

  • Adds the specified 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

    • params: {
          asset: Asset;
          basePage: number;
          pageRanges?: PageRanges;
      }

      The parameters for adding pages to be replaced.

      • asset: Asset

        The PDF file for insertion. Cannot be undefined.

      • basePage: number

        The page of the base PDF file. Cannot be undefined.

      • Optional pageRanges?: PageRanges

        The page ranges of the input PDF file. If not specified, all pages are included.

    Returns ReplacePagesParams

    this ReplacePagesParams instance.

Generated using TypeDoc