NewPage

class NewPage

Settings for new page to be added to a PDF. Instances of this class are immutable and can be generated using the Builder.

Types

Link copied to clipboard
open class Builder
Builder for NewPage objects.
Link copied to clipboard
Callback passed to fromCanvas to perform the drawing on the document canvas.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Standard A0 841x1189mm size.
Link copied to clipboard
Standard A4 210x297mm size.
Link copied to clipboard
Standard A5 148x210mm size.
Link copied to clipboard
Standard B4 250x353mm size.
Link copied to clipboard
Standard B5 176x250mm size.
Link copied to clipboard
Standard US letter 8.5x11" size.
Link copied to clipboard
Standard US legal 8.5x14" size.
Link copied to clipboard
Link copied to clipboard
@IntRange(from = "-270", to = 270)
val rotation: Int
Link copied to clipboard
val sourceDocument: InternalPdfDocument

Functions

Link copied to clipboard
Creates a new empty page.
Link copied to clipboard
Creates a new page from a Canvas holding all the draw calls.
Link copied to clipboard
open fun fromPage(@NonNull sourceDocument: PdfDocument, pageIndex: Int): NewPage.Builder
Copies page from a source document.
Link copied to clipboard
open fun getNativeNewPageConfiguration(): NativeNewPageConfiguration
Returns native NewPageConfiguration object.
Link copied to clipboard
Used to determine whether new page was created using pattern.
Link copied to clipboard
Used to determine whether new page was created using PDF document as its source.
Link copied to clipboard
Creates a new page with a preset pattern.
Link copied to clipboard
open fun toString(): String