ExportAnnotationsXfdf

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

Exporte le contenu des types d’annotations spécifiés dans XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
ParamètreTaperLa description
xmlOutputStreamStreamLe flux XFDF de sortie.
startInt32Page de démarrage à partir de laquelle les annotations du document seront exportées.
endInt32Page de fin vers laquelle les annotations du document seront exportées.
annotTypesString[]Le tableau des types d’annotations doit être exporté.

Exemples

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

Voir également


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

Exporte le contenu des types d’annotations spécifiés dans XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, 
    AnnotationType[] annotTypes)
ParamètreTaperLa description
xmlOutputStreamStreamLe flux XFDF de sortie.
startInt32Page de démarrage à partir de laquelle les annotations du document seront exportées.
endInt32Page de fin vers laquelle les annotations du document seront exportées.
annotTypesAnnotationType[]Le tableau des types d’annotations doit être exporté.

Exemples

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

Voir également