ExportAnnotationsXfdf
Contenu
[
Cacher
]ExportAnnotationsXfdf(Stream, int, int, string[])
Exporte le contenu des types d’annotations spécifiés dans XFDF
public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end, string[] annotTypes)
Paramètre | Taper | La description |
---|---|---|
xmlOutputStream | Stream | Le flux XFDF de sortie. |
start | Int32 | Page de démarrage à 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 doit être exporté. |
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 également
- class PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF
ExportAnnotationsXfdf(Stream, int, int, AnnotationType[])
Exporte le contenu des types d’annotations spécifiés dans XFDF
public void ExportAnnotationsXfdf(Stream xmlOutputStream, int start, int end,
AnnotationType[] annotTypes)
Paramètre | Taper | La description |
---|---|---|
xmlOutputStream | Stream | Le flux XFDF de sortie. |
start | Int32 | Page de démarrage à 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 doit être exporté. |
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 également
- enum AnnotationType
- class PdfAnnotationEditor
- espace de noms Aspose.Pdf.Facades
- Assemblée Aspose.PDF