Ekspor Data Formulir
The Documentize PDF Extractor for .NET plugin provides a seamless way to extract and export data from PDF forms (AcroForms) into other formats like CSV. This dynamic tool simplifies the process of retrieving form field values, allowing for easy data management, transfer, and analysis.
Cara Mengekspor Data Formulir dari PDF
Untuk mengekspor data formulir dari PDF ke CSV, ikuti langkah-langkah berikut:
- Buat instance dari kelas
ExtractImagesOptions. - Tentukan opsi ekspor menggunakan kelas
FormExporterValuesToCsvOptions. - Tambahkan file PDF masukan dan tentukan file CSV keluaran.
- Jalankan metode
Extractuntuk melakukan ekspor.
1// Create ExtractFormDataToDsvOptions object to set instructions
2var options = new ExtractFormDataToDsvOptions(',', true);
3// Add input file path
4options.AddInput(new FileDataSource("path_to_your_pdf_file.pdf"));
5// Set output file path
6options.AddOutput(new FileDataSource("path_to_result_csv_file.csv"));
7// Perform the process
8PdfExtractor.Extract(options);Fitur Utama:
- Export Form Data: Extract data from PDF forms (AcroForms) into CSV or other formats.
- Data Filtering: Use predicates to filter specific form fields for export based on criteria like field type or page number.
- Flexible Output: Save exported data for analysis or transfer to spreadsheets, databases, or other document formats.