PdfAnnotationEditor.ImportAnnotationFromXfdf
Contenu
[
Cacher
]ImportAnnotationFromXfdf(string, AnnotationType[])
Importe les annotations spécifiées à partir du fichier XFDF.
public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
| Paramètre | Type | Description |
|---|---|---|
| xfdfFile | String | Le fichier XFDF d’entrée. |
| annotType | AnnotationType[] | Le tableau d’annotations à importer. |
Exemples
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotationFromXfdf("annots.xfdf", annotTypes);
editor.Save("example_out.pdf");
Voir aussi
- enum AnnotationType
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF
ImportAnnotationFromXfdf(Stream, AnnotationType[])
Importe les annotations spécifiées à partir du flux de données XFDF.
public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
| Paramètre | Type | Description |
|---|---|---|
| xfdfStream | Stream | Le flux de données XFDF d’entrée. |
| annotType | AnnotationType[] | Le tableau des types d’annotations à importer. |
Exemples
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");
Voir aussi
- enum AnnotationType
- class PdfAnnotationEditor
- namespace Aspose.Pdf.Facades
- assembly Aspose.PDF