ImportAnnotations

ImportAnnotations(string[], AnnotationType[])

Importerar de angivna anteckningarna till dokument från en rad andra PDF-dokument.

public void ImportAnnotations(string[] annotFile, AnnotationType[] annotType)
ParameterTypBeskrivning
annotFileString[]Uppsättningen av sökvägar för PDF-dokument som innehåller källkommentarer.
annotTypeAnnotationType[]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


ImportAnnotations(string[])

Importerar kommentarer till dokument från en mängd andra PDF-dokument.

public void ImportAnnotations(string[] annotFile)
ParameterTypBeskrivning
annotFileString[]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


ImportAnnotations(Stream[], AnnotationType[])

Importerar de angivna anteckningarna till dokument från en rad andra PDF-dokumentströmmar.

public void ImportAnnotations(Stream[] annotFileStream, AnnotationType[] annotType)
ParameterTypBeskrivning
annotFileStreamStream[]Mängden strömmar av PDF-dokument som innehåller källkommentarer.
annotTypeAnnotationType[]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


ImportAnnotations(Stream[])

Importerar kommentarer till dokument från en mängd andra PDF-dokumentströmmar.

public void ImportAnnotations(Stream[] annotFileStream)
ParameterTypBeskrivning
annotFileStreamStream[]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