public final class

PagePattern

extends Object
java.lang.Object
   ↳ com.pspdfkit.document.processor.PagePattern

Class Overview

Tiling pattern for a new page.

Summary

Fields
public static final PagePattern BLANK No pattern, empty page.
public static final PagePattern DOTS_5MM Dots with 5mm pitch.
public static final PagePattern GRID_5MM Grid with 5mm squares.
public static final PagePattern LINES_5MM Lines with 5mm of spacing.
public static final PagePattern LINES_7MM Lines with 7mm of spacing.
Public Constructors
PagePattern(DataProvider dataProvider)
Constructs a page pattern from PDF data served by DataProvider.
PagePattern(Uri fileUri)
Constructs a page pattern from PDF data served from file content provider URI.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static final PagePattern BLANK

No pattern, empty page. *

public static final PagePattern DOTS_5MM

Dots with 5mm pitch. *

public static final PagePattern GRID_5MM

Grid with 5mm squares. *

public static final PagePattern LINES_5MM

Lines with 5mm of spacing. *

public static final PagePattern LINES_7MM

Lines with 7mm of spacing. *

Public Constructors

public PagePattern (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.

public PagePattern (Uri fileUri)

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://).