Language

PdfRenderer.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 the page object is updated.

Attributes

Exceptions

The page object cannot be updated.

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.

Write(ParcelFileDescriptor, Boolean) needs to be called to get the updated PDF stream after calling this method. A PdfRenderer.Page instance can be closed before calling Write(ParcelFileDescriptor, Boolean).

Java documentation for android.graphics.pdf.PdfRenderer.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