ExportAnnotationsXfdf

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

Exporterar innehållet i de angivna anteckningstyperna till XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
ParameterTypBeskrivning
xmlOutputStreamStreamDen utgående XFDF-strömmen.
startInt32Startsida från vilken anteckningarna i dokumentet kommer att exporteras.
endInt32Slutsida till vilken kommentarerna i dokumentet kommer att exporteras.
annotTypesString[]Uppsättningen av anteckningstyper måste exporteras.

Exempel

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

Se även


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

Exporterar innehållet i de angivna anteckningstyperna till XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, 
    AnnotationType[] annotTypes)
ParameterTypBeskrivning
xmlOutputStreamStreamDen utgående XFDF-strömmen.
startInt32Startsida från vilken anteckningarna i dokumentet kommer att exporteras.
endInt32Slutsida till vilken kommentarerna i dokumentet kommer att exporteras.
annotTypesAnnotationType[]Uppsättningen av anteckningstyper måste exporteras.

Exempel

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

Se även