Skip to content
Guides

Extract from PDF

Overview

To extract text,table,image content from a PDF document.

Sample

Full sample code which illustrates the text,table,image extraction capabilities.

c#
string inputFilePath = "***";
string outputFolderPath = "***";
string outputFileName = "***";
CPDFConverterJsonPDF converter =
CPDFConvertFactroy.CreateConverter(CPDFConvertType.CPDFConvertTypeJsonPDF,
inputFilePath) as CPDFConverterJsonPDF;
CPDFConvertJsonOptions jsonOptions = new CPDFConvertJsonOptions();
jsonOptions.IsAllowOCR = false;
jsonOptions.IsAILayoutAnalysis = false;
ConvertError error = ConvertError.ERR_UNKNOWN;
converter.Convert(outputFolderPath, ref outputFileName, jsonOptions, ref error);