PdfAnnotationEditor.ExportAnnotationsXfdf
Contenu
[
Cacher
]ExportAnnotationsXfdf(Stream, int, int, string[])
Exporte le contenu des types d’annotations spécifiés en XFDF
public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
| Paramètre | Type | Description |
|---|---|---|
| xmlOutputStream | Stream | Le flux XFDF de sortie. |
| start | Int32 | Page de départ à partir de laquelle les annotations du document seront exportées. |
| end | Int32 | Page de fin vers laquelle les annotations du document seront exportées. |
| annotTypes | String[] | Le tableau des types d’annotations à exporter. |
Exemples
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);
}
Voir aussi
- classe PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- assembly Aspose.PDF
ExportAnnotationsXfdf(Stream, int, int, AnnotationType[])
Exporte le contenu des types d’annotations spécifiés en XFDF
public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end,
AnnotationType[] annotTypes)
| Paramètre | Type | Description |
|---|---|---|
| xmlOutputStream | Stream | Le flux XFDF de sortie. |
| start | Int32 | Page de départ à partir de laquelle les annotations du document seront exportées. |
| end | Int32 | Page de fin vers laquelle les annotations du document seront exportées. |
| annotTypes | AnnotationType[] | Le tableau des types d’annotations à exporter. |
Exemples
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);
}
Voir aussi
- énum AnnotationType
- classe PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- assembly Aspose.PDF