#1
Posted
:
Tuesday, January 24, 2017 11:34:35 AM(UTC)
Groups: Registered
Posts: 1
Hi,
We are trying to evaluate your product for using in our project.
Please clarify following questions.
1) Which JAVA API from LEADTOOLS supports converting documents (formats - .DOC, .XLSX, .MSG, .PDF, .PPT) to .TIFF format.
2) Does LEADTOOLS supports (JAVA API) converting .TIFF document (sample content - images with hand written content, images with illegible content, stand forms etc. ) to a searchable PDF format.
Thanks,
Naveen.
#2
Posted
:
Friday, January 27, 2017 6:28:45 PM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Hello Naveen,
1.) You would need to use the RasterCodecs engine in the LEADTOOLS Document Imaging SDK. Here is some sample code to illustrate:
Code: // Run the demo
RasterCodecs rasterCodecs = null;
RasterImage rasterImage = null;
try {
// Initiate raster codecs
rasterCodecs = new RasterCodecs();
//Enable Loading Text Files
if (demoData.inFilePath.toLowerCase().endsWith(".txt"))
rasterCodecs.getOptions().getTxt().getLoad().setEnabled(true);
// Create a LEAD stream from the input file
ILeadStream stream = LeadStreamFactory.create(demoData.inFilePath);
// Load image
rasterImage = rasterCodecs.load(stream, 0, CodecsLoadByteOrder.BGR_OR_GRAY, demoData.firstPage, demoData.lastPage);
// Save image
System.out.println("Save image...");
rasterCodecs.save(rasterImage, demoData.outFilePath, RasterImageFormat.valueOf(demoData.outputFormat.toString()), demoData.outputBPP, 1, -1, 1, CodecsSavePageMode.OVERWRITE);
} catch (Exception e){
System.out.println(e.getMessage());
} finally {
// Dispose the raster codecs
if (rasterCodecs != null)
rasterCodecs.dispose();
// Dispose the raster image
if (rasterImage != null)
rasterImage.dispose();
}
2.) Yes, using the LEADTOOLS OCR Advantage engine and Document Writers. There is an OCR example that ships with the SDK.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.