Convert PDF in CSV – C# sample source code

  • Home
  • /
  • Articles
  • /
  • Convert PDF in CSV – C# sample source code

Convert PDF in CSV Excel file sample shows how to convert PDF to CSV format with PDF Extractor SDK. Use C# sample source code below.

C#

// Create Bytescout.PDFExtractor.CSVExtractor instance
           CSVExtractor extractor = new CSVExtractor();
           extractor.RegistrationName = "demo";
           extractor.RegistrationKey = "demo";

           // Load sample PDF document to convertire pdf in csv format
           extractor.LoadDocumentFromFile("sample3.pdf");

           //extractor.CSVSeparatorSymbol = ","; // you can change CSV separator symbol (if needed) from "," symbol to another if needed for non-US locales

           // save CSV file from PDF in
           extractor.SaveCSVToFile("output.csv");

prev
next