PdfAnnotationEditor.ExportAnnotationsXfdf

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

تصدر محتوى أنواع التعليقات المحددة إلى XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
المعاملالنوعالوصف
xmlOutputStreamStreamتدفق XFDF الناتج.
startInt32الصفحة التي ستصدر منها تعليقات المستند.
endInt32الصفحة التي ستصدر إليها تعليقات المستند.
annotTypesString[]مصفوفة أنواع التعليقات التي تحتاج إلى التصدير.

أمثلة

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

انظر أيضًا


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

تصدر محتوى أنواع التعليقات المحددة إلى XFDF

public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, 
    AnnotationType[] annotTypes)
المعاملالنوعالوصف
xmlOutputStreamStreamتدفق XFDF الناتج.
startInt32الصفحة التي ستصدر منها تعليقات المستند.
endInt32الصفحة التي ستصدر إليها تعليقات المستند.
annotTypesAnnotationType[]مصفوفة أنواع التعليقات التي تحتاج إلى التصدير.

أمثلة

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

انظر أيضًا