ExportAnnotationsXfdf

ExportAnnotationsXfdf(Stream, int, int, string[])

Exporta el contenido de los tipos de anotación especificados a XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
ParámetroEscribeDescripción
xmlOutputStreamStreamEl flujo XFDF de salida.
startInt32Página de inicio desde la que se exportarán las anotaciones del documento.
endInt32Página final a la que se exportarán las anotaciones del documento.
annotTypesString[]Es necesario exportar la matriz de tipos de anotaciones.

Ejemplos

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
string[] annotTypes = new string[] {"Text", "Highlight"};
using (Stream stream = File.Create("example.xfdf"))
{
    editor.ExportAnnotationsXfdf(stream, 1, 2, annotTypes);
}

Ver también


ExportAnnotationsXfdf(Stream, int, int, AnnotationType[])

Exporta el contenido de los tipos de anotaciones especificados a XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, 
    AnnotationType[] annotTypes)
ParámetroEscribeDescripción
xmlOutputStreamStreamEl flujo XFDF de salida.
startInt32Página de inicio desde la que se exportarán las anotaciones del documento.
endInt32Página final a la que se exportarán las anotaciones del documento.
annotTypesAnnotationType[]Es necesario exportar la matriz de tipos de anotaciones.

Ejemplos

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = new AnnotationType[] {AnnotationType.Text, AnnotationType.Highlight};
using (Stream stream = File.Create("example.xfdf"))
{
    editor.ExportAnnotationsXfdf(stream, 1, 2, annotTypes);
}

Ver también