Guides
Convert PDF to CSV
Overview
ComPDFKit Conversion SDK supports converting PDF documents to CSV (Comma-Separated Values). Converting PDF to CSV is a common need, usually used to extract tabular or structured data from PDF documents and convert them into CSV files.
Sample
This sample demonstrates how to convert from a PDF to CSV file.
c++
ConvertOptions opt;
opt.excel_csv_format = true;
CPDFConversion::StartPDFToExcel("csv.pdf", "password", "path/output.csv", opt);
// Merge all tables into one CSV file
opt.excel_worksheet_option = ExcelWorksheetOption::e_ForDocument;
CPDFConversion::StartPDFToExcel("csv.pdf", "password", "path/output.csv", opt);