addNewPage

open fun addNewPage(@NonNull newPage: NewPage, @IntRange(from = 0) destinationPageIndex: Int): PdfProcessorTask

Adds a new page to the document at passed index.

Note: This call requires document editing feature in your license.

Return

Processor task describing the page processing progress.

Parameters

newPage

Configuration setting size and rotation of the new page.

destinationPageIndex

Page index position of the destination where page should be added.

Throws

If new page contains a bitmap that cannot be opened