ImportAnnotationFromXfdf

ImportAnnotationFromXfdf(string, AnnotationType[])

يستورد التعليقات التوضيحية المحددة من ملف XFDF .

public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
معامليكتبوصف
xfdfFileStringملف الإدخال XFDF.
annotTypeAnnotationType[]مصفوفة التعليقات التوضيحية التي سيتم استيرادها.

أمثلة

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotationFromXfdf("annots.xfdf", annotTypes);
editor.Save("example_out.pdf");

أنظر أيضا


ImportAnnotationFromXfdf(Stream, AnnotationType[])

يستورد التعليقات التوضيحية المحددة من تدفق بيانات XFDF .

public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
معامليكتبوصف
xfdfStreamStreamدفق بيانات الإدخال XFDF.
annotTypeAnnotationType[]مصفوفة أنواع التعليقات التوضيحية التي سيتم استيرادها.

أمثلة

PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes ={ AnnotationType.Highlight, AnnotationType.Line };
editor.ImportAnnotationFromXfdf(File.OpenRead("annots.xfdf"), annotTypes);
editor.Save("example_out.pdf");

أنظر أيضا