Skip to content
ComPDF

Convert PDF to CSV

Overview

ComPDF Conversion SDK supports converting PDF documents to CSV (Comma-Separated Values). In the Ruby SDK, CSV output is controlled by Excel conversion options.

Set Whether to Automatically Create Folders

When multiple CSV files may be output, use auto_create_folder to control whether folders are automatically created.

Sample

ruby
options = ComPDFKitConversion::ConvertOptions.new
options.excel_csv_format = true
options.auto_create_folder = true

result = ComPDFKitConversion::Conversion.start_pdf_to_excel(
  input_file_path,
  "",
  output_file_path,
  options
)