Android APIs
public static final class

PdfDocument.PageInfo.Builder

extends Object
java.lang.Object
   ↳ android.graphics.pdf.PdfDocument.PageInfo.Builder

Class Overview

Builder for creating a PdfDocument.PageInfo.

Summary

Public Constructors
PdfDocument.PageInfo.Builder(int pageWidth, int pageHeight, int pageNumber)
Creates a new builder with the mandatory page info attributes.
Public Methods
PdfDocument.PageInfo create()
Creates a new PdfDocument.PageInfo.
PdfDocument.PageInfo.Builder setContentRect(Rect contentRect)
Sets the content rectangle in PostScript point (1/72th of an inch).
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PdfDocument.PageInfo.Builder (int pageWidth, int pageHeight, int pageNumber)

Added in API level 19

Creates a new builder with the mandatory page info attributes.

Parameters
pageWidth int: The page width in PostScript (1/72th of an inch).
pageHeight int: The page height in PostScript (1/72th of an inch).
pageNumber int: The page number.

Public Methods

public PdfDocument.PageInfo create ()

Added in API level 19

Creates a new PdfDocument.PageInfo.

Returns
PdfDocument.PageInfo The new instance.

public PdfDocument.PageInfo.Builder setContentRect (Rect contentRect)

Added in API level 19

Sets the content rectangle in PostScript point (1/72th of an inch). This is the area that contains the page content and is relative to the page top left.

Parameters
contentRect Rect: The content rectangle. Must fit in the page.
Returns
PdfDocument.PageInfo.Builder