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에는 Form.ImportFdf 메서드가 포함되어 있으며, 이는 FDF 파일의 필드 내용을 가져와 새로운 PDF에 넣습니다.
다음 코드 스니펫은 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.