Skip to content
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 to CSV files.

kotlin
val inputFilePath = "***";
val password = "***";
val outputFileName = "***";

val excelOptions = ExcelOptions();
excelOptions.csvFormat = true;
val error = ComPDFKitConverter.startPDFToExcel(inputFilePath, password, outputFileName, excelOptions);