Convert Image To Searchable PDF using OCR
1- Free Java source code to convert PDF To Searchable PDF File ,
using ocr( optical character recognition) ,get Free source code by submitting request. (required our jar after submitting request you will get free jars)
using ocr( optical character recognition) ,get Free source code by submitting request. (required our jar after submitting request you will get free jars)
public class PDF2SearchablePDF
{
public static void main(String[] args)
{
// Create a converter instance
DocumentConverter dc = new DocumentConverter();
// Change digitizer settings to recognize text from image data
ConverterDigitizerSettings cds = dc.getPreferences().getDigitizerSettings();
cds.setDigitizationMode(DigitizationMode.ALL_IMAGES);
cds.setRecognizeElementTypes(RecognizeElementTypes.TEXT);
try
{
// Convert an image to PDF and digitize any text in it
dc.convertToFile( "D:\\image.png", "E:\\mypdf.pdf");
}
catch (FormatNotSupportedException e) { e.printStackTrace(); }
catch (ConverterException e) { e.printStackTrace(); }
catch (XDocException e) { e.printStackTrace();}
}
}
{
public static void main(String[] args)
{
// Create a converter instance
DocumentConverter dc = new DocumentConverter();
// Change digitizer settings to recognize text from image data
ConverterDigitizerSettings cds = dc.getPreferences().getDigitizerSettings();
cds.setDigitizationMode(DigitizationMode.ALL_IMAGES);
cds.setRecognizeElementTypes(RecognizeElementTypes.TEXT);
try
{
// Convert an image to PDF and digitize any text in it
dc.convertToFile( "D:\\image.png", "E:\\mypdf.pdf");
}
catch (FormatNotSupportedException e) { e.printStackTrace(); }
catch (ConverterException e) { e.printStackTrace(); }
catch (XDocException e) { e.printStackTrace();}
}
}
2- Free source code to convert PDF to image with high resolution .
3- Free Source code to convert images to PDF .
3- Free Source code to convert images to PDF .