PdfDocument.PageInfo.Builder


public static final class PdfDocument.PageInfo.Builder
extends Object

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


Builder for creating a PageInfo.

Summary

Public constructors

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 PageInfo.

PdfDocument.PageInfo.Builder setContentRect(Rect contentRect)

Sets the content rectangle in PostScript point (1/72th of an inch).

Inherited methods

Public constructors

Builder

Added in API level 19
public Builder (int pageWidth, 
                int pageHeight, 
                int pageNumber)

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

create

Added in API level 19
public PdfDocument.PageInfo create ()

Creates a new PageInfo.

Returns
PdfDocument.PageInfo The new instance.

setContentRect

Added in API level 19
public PdfDocument.PageInfo.Builder setContentRect (Rect contentRect)

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