ImportAnnotations
Innehåll
[
Dölj
]ImportAnnotations(string[], AnnotationType[])
Importerar de angivna anteckningarna till dokument från en rad andra PDF-dokument.
public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
Parameter | Typ | Beskrivning |
---|---|---|
annotFile | String[] | Uppsättningen av sökvägar för PDF-dokument som innehåller källkommentarer. |
annotType | AnnotationType[] | Uppsättningen av anteckningstyper som ska importeras. |
Exempel
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
string[] paths = new string[2] {"with_annots1.pdf", "with_annots2.pdf"};
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotations(paths, annotTypes);
editor.Save("example_out.pdf");
Se även
- enum AnnotationType
- class PdfAnnotationEditor
- namnutrymme Aspose.Pdf.Facades
- hopsättning Aspose.PDF
ImportAnnotations(string[])
Importerar kommentarer till dokument från en mängd andra PDF-dokument.
public void ImportAnnotations(string[] annotFile)
Parameter | Typ | Beskrivning |
---|---|---|
annotFile | String[] | Uppsättningen av sökvägar för PDF-dokument som innehåller källkommentarer. |
Exempel
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
string[] paths = new string[2] {"with_annots1.pdf", "with_annots2.pdf"};
editor.ImportAnnotations(paths);
editor.Save("example_out.pdf");
Se även
- class PdfAnnotationEditor
- namnutrymme Aspose.Pdf.Facades
- hopsättning Aspose.PDF
ImportAnnotations(Stream[], AnnotationType[])
Importerar de angivna anteckningarna till dokument från en rad andra PDF-dokumentströmmar.
public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
Parameter | Typ | Beskrivning |
---|---|---|
annotFileStream | Stream[] | Mängden strömmar av PDF-dokument som innehåller källkommentarer. |
annotType | AnnotationType[] | Anteckningstyperna som ska importeras. |
Exempel
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
Stream[] streams = new FileStream[2];
stream[0]= File.OpenRead("with_annots1.pdf");
stream[1]= File.OpenRead("with_annots2.pdf");
AnnotationType[] annotTypes = {AnnotationType.Highlight, AnnotationType.Text};
editor.ImportAnnotations(streams, annotTypes);
editor.Save("example_out.pdf");
stream[0].Close();
stream[1].Close();
Se även
- enum AnnotationType
- class PdfAnnotationEditor
- namnutrymme Aspose.Pdf.Facades
- hopsättning Aspose.PDF
ImportAnnotations(Stream[])
Importerar kommentarer till dokument från en mängd andra PDF-dokumentströmmar.
public void ImportAnnotations(Stream[] annotFileStream)
Parameter | Typ | Beskrivning |
---|---|---|
annotFileStream | Stream[] | Mängden strömmar av PDF-dokument som innehåller källkommentarer. |
Exempel
PdfAnnotationEditor editor = new PdfAnnotationEditor();
editor.BindPdf("example.pdf");
Stream[] streams = new FileStream[2];
streams[0]= File.OpenRead("with_annots1.pdf");
streams[1]= File.OpenRead("with_annots2.pdf");
editor.ImportAnnotations(streams);
editor.Save("example_out.pdf");
streams[0].Close();
streams[1].Close();
Se även
- class PdfAnnotationEditor
- namnutrymme Aspose.Pdf.Facades
- hopsättning Aspose.PDF