ExportAnnotationsXfdf

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

Esporta il contenuto dei tipi di annotazioni specificati in XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
ParametroTipoDescrizione
xmlOutputStreamStreamIl flusso XFDF di output.
startInt32Pagina iniziale da cui verranno esportate le annotazioni del documento.
endInt32Pagina finale in cui verranno esportate le annotazioni del documento.
annotTypesString[]L’array di tipi di annotazione deve essere esportato.

Esempi

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);
}

Guarda anche


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

Esporta il contenuto dei tipi di annotazioni specificati in XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, 
    AnnotationType[] annotTypes)
ParametroTipoDescrizione
xmlOutputStreamStreamIl flusso XFDF di output.
startInt32Pagina iniziale da cui verranno esportate le annotazioni del documento.
endInt32Pagina finale in cui verranno esportate le annotazioni del documento.
annotTypesAnnotationType[]L’array di tipi di annotazione deve essere esportato.

Esempi

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);
}

Guarda anche