Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.
PDFAnnotationEditorクラスには、FDFファイルからの注釈のインポートに関するメソッドが含まれています。PdfAnnotationEditor.ImportAnnotationsFromFdfメソッドは、FDFドキュメントからPDFファイルに注釈をインポートする機能を提供します。
また、Class Formには、FDFファイルからフィールドの内容をインポートし、新しいPDFに配置するForm.ImportFdfメソッドが含まれています。
次のコードスニペットは、Form.ImportFdf()メソッドを使用してFDF形式の注釈をPDFにインポートする方法を示しています:
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void ImportFDFByForm()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();
using (var form = new Aspose.Pdf.Facades.Form(dataDir + "input.pdf"))
{
// Open FDF file
using (var fdfInputStream = new FileStream(dataDir + "student.fdf", FileMode.Open))
{
form.ImportFdf(fdfInputStream);
}
// Save PDF document
form.Save(dataDir + "ImportDataFromPdf_Form_out.pdf");
}
}
次のコードスニペットは、PdfAnnotationEditor.ImportAnnotationsFromFdf()メソッドを使用してFDF形式の注釈をPDFにインポートする方法を示しています:
// For complete examples and data files, visit https://github.com/aspose-pdf/Aspose.PDF-for-.NET
private static void ImportFdfByPdfAnnotationEditor()
{
// The path to the documents directory
var dataDir = RunExamples.GetDataDir_AsposePdfFacades_Forms();
// Open PDF document
using (var document = new Aspose.Pdf.Document(dataDir + "input.pdf"))
{
var editor = new Aspose.Pdf.Facades.PdfAnnotationEditor();
// Bind PDF document
editor.BindPdf(dataDir + "input.pdf");
editor.ImportAnnotationsFromFdf(dataDir + "student.fdf");
// Save PDF document
editor.Save(dataDir + "ImportDataFromPdf_AnnotationEditor_out.pdf");
}
}
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.