PagePdf

constructor(@NonNull context: Context, @NonNull pdfFile: Uri)

PDF page from an existing file. If the file has multiple pages, only first page will be used. Page will be laid out with its original size aligned to the bottom left corner of the existing page.

Parameters

context

Context of the calling component.

pdfFile

URI to file, may be a file URI or a content provider URI.


constructor(@NonNull context: Context, @NonNull pdfFile: Uri, @NonNull position: PagePosition)

PDF page from an existing file. If the file has multiple pages, only first page will be used.

Parameters

context

Context of the calling component.

pdfFile

URI to file, may be a file URI or a content provider URI.

position

Alignment of this page contents on the target page.


constructor(@NonNull context: Context, @NonNull pdfFile: Uri, @NonNull matrix: Matrix)

PDF page from an existing file. If the file has multiple pages, only first page will be used.

Parameters

context

Context of the calling component.

pdfFile

URI to file, may be a file URI or a content provider URI.

matrix

Custom transformation matrix for PDF content, identity matrix means alignment on bottom left at coordinate (0,0).


constructor(@NonNull context: Context, @NonNull pdfDataProvider: DataProvider)

PDF page from a DataProvider. If the file has multiple pages, only first page will be used. Page will be laid out with its original size aligned to the bottom left corner of the existing page.

Parameters

context

Context of the calling component.

pdfDataProvider

Data provider for the source PDF.


constructor(@NonNull context: Context, @NonNull pdfDataProvider: DataProvider, @NonNull position: PagePosition)

PDF page from a DataProvider. If the file has multiple pages, only first page will be used.

Parameters

context

Context of the calling component.

pdfDataProvider

Data provider for the source PDF.

position

Alignment of this page contents on the target page.


constructor(@NonNull context: Context, @NonNull pdfDataProvider: DataProvider, @NonNull matrix: Matrix)

PDF page from a DataProvider. If the file has multiple pages, only first page will be used.

Parameters

context

Context of the calling component.

pdfDataProvider

Data provider for the source PDF.

matrix

Custom transformation matrix for PDF content, identity matrix means alignment on bottom left at coordinate 0,0


constructor(@NonNull context: Context, @NonNull pdfFile: Uri, @IntRange(from = 0) pageIndex: Int)

PDF page from an existing file. Page will be laid out with its original size aligned to the bottom left corner of the existing page.

Parameters

context

Context of the calling component.

pdfFile

URI to source document, may be a file URI or a content provider URI.

pageIndex

Index of page in the source document.


constructor(@NonNull context: Context, @NonNull pdfFile: Uri, @IntRange(from = 0) pageIndex: Int, @NonNull position: PagePosition)

PDF page from an existing file.

Parameters

context

Context of the calling component.

pdfFile

URI to source document, may be a file URI or a content provider URI.

pageIndex

Index of page in the source document.

position

Alignment of this page contents on the target page.


constructor(@NonNull context: Context, @NonNull pdfFile: Uri, @IntRange(from = 0) pageIndex: Int, @NonNull matrix: Matrix)

PDF page from an existing file.

Parameters

context

Context of the calling component.

pdfFile

URI to source document, may be a file URI or a content provider URI.

pageIndex

Index of page in the source document.

matrix

Custom transformation matrix for PDF content, identity matrix means alignment on bottom left at coordinate (0,0).


constructor(@NonNull context: Context, @NonNull pdfDataProvider: DataProvider, @IntRange(from = 0) pageIndex: Int)

PDF page from a DataProvider. Page will be laid out with its original size aligned to the bottom left corner of the existing page.

Parameters

context

Context of the calling component.

pdfDataProvider

Data provider for the source PDF.

pageIndex

Index of page in the source document.


constructor(@NonNull context: Context, @NonNull pdfDataProvider: DataProvider, @IntRange(from = 0) pageIndex: Int, @NonNull position: PagePosition)

PDF page from a DataProvider. If the file has multiple pages, only first page will be used.

Parameters

context

Context of the calling component.

pdfDataProvider

Data provider for the source PDF.

pageIndex

Index of page in the source document.

position

Alignment of this page contents on the target page.


constructor(@NonNull context: Context, @NonNull pdfDataProvider: DataProvider, @IntRange(from = 0) pageIndex: Int, @NonNull matrix: Matrix)

PDF page from a DataProvider. If the file has multiple pages, only first page will be used.

Parameters

context

Context of the calling component.

pdfDataProvider

Data provider for the source PDF.

pageIndex

Index of page in the source document.

matrix

Custom transformation matrix for PDF content, identity matrix means alignment on bottom left at coordinate 0,0


constructor(@NonNull context: Context, @NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int)

PDF page from an existing PdfDocument. Page will be laid out with its original size aligned to the bottom left corner of the existing page.

Parameters

context

Context of the calling component.

document

Source document

pageIndex

Index of page in the source document.


constructor(@NonNull context: Context, @NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int, @NonNull matrix: Matrix)

PDF page from an existing PdfDocument.

Parameters

context

Context of the calling component.

document

Source document

pageIndex

Index of page in the source document.

matrix

Custom transformation matrix for PDF content, identity matrix means alignment on bottom left at coordinate 0,0


constructor(@NonNull context: Context, @NonNull document: PdfDocument, @IntRange(from = 0) pageIndex: Int, @NonNull position: PagePosition)

PDF page from an existing PdfDocument.

Parameters

context

Context of the calling component.

document

Source document

pageIndex

Index of page in the source document.

position

Alignment of this page contents on the target page.