Language

PdfRendererPreV.Page.AddPageObject(PdfPageObject) Method

Definition

Adds the given PdfPageObject to the page.

[Android.Runtime.Register("addPageObject", "(Landroid/graphics/pdf/component/PdfPageObject;)I", "", ApiSince=36)]
public int AddPageObject(Android.Graphics.Pdf.Component.PdfPageObject pageObject);
[<Android.Runtime.Register("addPageObject", "(Landroid/graphics/pdf/component/PdfPageObject;)I", "", ApiSince=36)>]
member this.AddPageObject : Android.Graphics.Pdf.Component.PdfPageObject -> int

Parameters

pageObject
PdfPageObject

the PdfPageObject object to add.

Returns

id of the added page object, or -1 if the page object cannot be added. The id is guaranteed to be non-negative if the page object is added successfully.

Attributes

Remarks

Adds the given PdfPageObject to the page.

PdfRenderer#write needs to be called to get the updated PDF stream after calling this method. PdfRenderer.Page instance can be closed before calling PdfRenderer#write.

Java documentation for android.graphics.pdf.PdfRendererPreV.Page.addPageObject(android.graphics.pdf.component.PdfPageObject).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to