ImportAnnotationFromXfdf
Innehåll
[
Dölj
]ImportAnnotationFromXfdf(string, AnnotationType[])
Importerar de angivna anteckningarna från XFDF-filen.
public void ImportAnnotationFromXfdf(string xfdfFile, AnnotationType[] annotType)
Parameter | Typ | Beskrivning |
---|---|---|
xfdfFile | String | Indata XFDF-filen. |
annotType | AnnotationType[] | Anteckningsmatrisen som ska importeras. |
Exempel
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotationFromXfdf("annots.xfdf", annotTypes);
editor.Save("example_out.pdf");
Se även
- enum AnnotationType
- class PdfAnnotationEditor
- namnutrymme Aspose.Pdf.Facades
- hopsättning Aspose.PDF
ImportAnnotationFromXfdf(Stream, AnnotationType[])
Importerar de angivna anteckningarna från XFDF-dataström.
public void ImportAnnotationFromXfdf(Stream xfdfStream, AnnotationType[] annotType)
Parameter | Typ | Beskrivning |
---|---|---|
xfdfStream | Stream | Den ingående XFDF-dataströmmen. |
annotType | AnnotationType[] | Uppsättningen av anteckningstyper som ska importeras. |
Exempel
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");
Se även
- enum AnnotationType
- class PdfAnnotationEditor
- namnutrymme Aspose.Pdf.Facades
- hopsättning Aspose.PDF