MUlti page pdf scanned image

  • Last Post 28 September 2018
Rama Reddy posted this 25 September 2018

I am unable to extract commas from the below image. How can I do that using JAVA SDK?

Order By: Standard | Newest | Votes
Koen de Leijer posted this 25 September 2018

Hi Rama

Can you please post the original PDF and the part(s) of your Java-code with which you are trying to perfom the extraction?
What characters are returned when using FineReader ?

Best regards
Koen de Leijer

Rama Reddy posted this 25 September 2018

Hi please check below code. And i am not getting commas. instead of 43,491 i am getting 43491

private void processImage() {
// String imagePath = SamplesConfig.GetSamplesFolder() + "//home//DCXMprod//ABBYY//Samples//images//Charlotta_1.jpg";
 String imagePath = SamplesConfig.GetSamplesFolder() + "SampleImages/Capital/10060288989_1-redacted.pdf";
try {
// Don't recognize PDF file with a textual content, just copy it
// Create document
//IEngine engine=null;
//String profile=SamplesConfig.GetSamplesFolder() + "images/dff.ini";
IFRDocument document = engine.CreateFRDocument();
try {
// Add image file to document
displayMessage( "Loading image..." );
document.AddImageFile( imagePath, null, null );
IDocumentProcessingParams docProcessingParams =engine.CreateDocumentProcessingParams();
IPageAnalysisParams tabParams=docProcessingParams.getPageProcessingParams().getPageAnalysisParams();
IPagePreprocessingParams pageproparams=engine.CreatePagePreprocessingParams();
IRTFExportParams rtfparam=engine.CreateRTFExportParams();
IXLExportParams xlparam=engine.CreateXLExportParams();
//displayMessage( "Saving results..." );
// Save results to rtf with default parameters
//String rtfExportPath = SamplesConfig.GetSamplesFolder() + "images/Elli_1.rtf";
//document.Export( rtfExportPath, FileExportFormatEnum.FEF_RTF, rtfparam);
// Save results to pdf using 'balanced' scenario
//IPDFExportParams pdfParams = engine.CreatePDFExportParams();
//pdfParams.setScenario( PDFExportScenarioEnum.PES_Balanced );
//String pdfExportPath = SamplesConfig.GetSamplesFolder() + "images/Elli_1tab1.pdf";
//document.Export( pdfExportPath, FileExportFormatEnum.FEF_PDF, pdfParams );
String xlExportPath = SamplesConfig.GetSamplesFolder() + "SampleImages/Capital/10060288989_1-redacted.xls";
//document.Export( texExportPath, FileExportFormatEnum.FEF_TextUnicodeDefaults, null);
//String xlExportPath = SamplesConfig.GetSamplesFolder() + "images/US/Equip3.xls";
//document.Export( xlExportPath, FileExportFormatEnum.FEF_XLSX, xlparam);
} finally {
// Close document
} catch( Exception ex ) {
displayMessage( ex.getMessage() );


Koen de Leijer posted this 25 September 2018

Hi Rama

Can you please add the original PDF?

Best regards
Koen de Leijer

Rama Reddy posted this 26 September 2018

Helen Osetrova posted this 28 September 2018



By default, FineReader Engine exports numerical values to XLSX format as numbers rather than strings. That means numbers can have various appearance depending on Cells Format of the XLSX table.


In order to avoid this behavior and get the numbers exactly as they look in the source document, please set the ConvertStringsToNumbers property of the XLExportParams object to false. Please pay your attention that in this case, the numbers will appear as strings in the result XLSX file.


Have a good day!