Lingua

PdfRendererPreV.Page.UpdatePageObject(Int32, PdfPageObject) Method

Definition

Update the given PdfPageObject to the page.

[Android.Runtime.Register("updatePageObject", "(ILandroid/graphics/pdf/component/PdfPageObject;)Z", "", ApiSince=36)]
public bool UpdatePageObject(int objectId, Android.Graphics.Pdf.Component.PdfPageObject pageObject);
[<Android.Runtime.Register("updatePageObject", "(ILandroid/graphics/pdf/component/PdfPageObject;)Z", "", ApiSince=36)>]
member this.UpdatePageObject : int * Android.Graphics.Pdf.Component.PdfPageObject -> bool

Parameters

objectId
Int32

The unique identifier of the page object to update.

pageObject
PdfPageObject

The PdfPageObject object to update.

Returns

true if page object is updated, false otherwise.

Attributes

Remarks

Update the given PdfPageObject to the page.

Note: This method only updates the parameters of the PageObject whose setters are available. Attempting to update fields with no corresponding setters will have no effect. Furthermore, the PdfPageObjectType of the provided pageObject must be the same as the original pageObject being updated.

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.updatePageObject(int, 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