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 | Taper | La 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 également
- enum AnnotationType
- class PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée 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 | Taper | La description |
---|---|---|
xfdfStream | Stream | Le flux de données XFDF d’entrée. |
annotType | AnnotationType[] | 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 également
- enum AnnotationType
- class PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF