Census Table from Life and Annuity quote request PDF - C#
PDF Extractor SDK sample in C# demonstrating ‘Census Table from Life and Annuity quote request PDF’
Program.cs
using Bytescout.PDFExtractor;
using System.Diagnostics;
namespace LifeAndAnnuityQuoteRequest
{
class Program
{
static void Main(string[] args)
{
// Create Bytescout.PDFExtractor.CSVExtractor instance
CSVExtractor extractor = new CSVExtractor();
extractor.RegistrationName = "demo";
extractor.RegistrationKey = "demo";
// Load sample PDF document
extractor.LoadDocumentFromFile(@".\SampleGroupDisabilityForm.pdf");
// Set extraction area
extractor.SetExtractionArea(new System.Drawing.RectangleF(27F, 324.8F, 554.3F, 358.5F));
// Check whether rows can be grouped
extractor.LineGroupingMode = LineGroupingMode.GroupByRows;
// Extract results
var outputFile = "result.csv";
extractor.SaveCSVToFile(outputFile);
// Cleanup
extractor.Dispose();
// Open with default associated program
ProcessStartInfo processStartInfo = new ProcessStartInfo(outputFile);
processStartInfo.UseShellExecute = true;
Process.Start(processStartInfo);
}
}
}