Language

PdfRendererPreV.Page.AddPageAnnotation(PdfAnnotation) Method

Definition

Adds the given annotation to the page.

[Android.Runtime.Register("addPageAnnotation", "(Landroid/graphics/pdf/component/PdfAnnotation;)I", "", ApiSince=36)]
public int AddPageAnnotation(Android.Graphics.Pdf.Component.PdfAnnotation annotation);
[<Android.Runtime.Register("addPageAnnotation", "(Landroid/graphics/pdf/component/PdfAnnotation;)I", "", ApiSince=36)>]
member this.AddPageAnnotation : Android.Graphics.Pdf.Component.PdfAnnotation -> int

Parameters

annotation
PdfAnnotation

the PdfAnnotation object to add

Returns

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

Attributes

Remarks

Adds the given annotation to the page. The annotation should be of supported type. See PdfAnnotationType for the supported types

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

Java documentation for android.graphics.pdf.PdfRendererPreV.Page.addPageAnnotation(android.graphics.pdf.component.PdfAnnotation).

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