Lenguaje

PdfRenderer.Page.AddPageAnnotation(PdfAnnotation) Método

Definición

Agrega la anotación especificada a la página.

[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

Parámetros

annotation
PdfAnnotation

el PdfAnnotation objeto que se va a agregar

Devoluciones

id de la anotación agregada o -1 si no se puede agregar la anotación. Se garantiza que el identificador no es negativo si la anotación se agrega correctamente.

Atributos

Comentarios

Agrega la anotación especificada a la página. La anotación debe ser de tipo admitido. Consulte PdfAnnotationType los tipos admitidos.

PdfRenderer#write es necesario llamar a para obtener la secuencia de PDF actualizada después de llamar a este método. PdfRenderer.Page Se puede cerrar la instancia antes de llamar a PdfRenderer#write.

Java documentación para android.graphics.pdf.PdfRenderer.Page.addPageAnnotation(android.graphics.pdf.component.PdfAnnotation).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a