PagePattern

constructor(@NonNull dataProvider: DataProvider)

Constructs a page pattern from PDF data served by DataProvider.

First pattern in the source PDF will be used. If the PDF does not define any patterns, PdfProcessor will fail with an error.

Parameters

dataProvider

Provider for PDF data that should be used as page pattern.


constructor(@NonNull fileUri: Uri)

Constructs a page pattern from PDF data served from file content provider URI.

First pattern in the source PDF will be used. If the PDF does not define any patterns, PdfProcessor will fail with an error.

Parameters

fileUri

A content provider URI with supported scheme (content:// or file://).