Hi All,
Greetings.
We are using ABBYY 10.5 finereader engine licence in our company. Abbyy client we are using is in java.
There is a recent need to convert TIFF documents to PDF, Is this conversion possible using java with fine reader 10.5. If yes, can you please paste a code snippet for the same.
コメント
1件のコメント
Hi, it is possible. The standard Hello sample in Java converts the Demo.tif image to the RTF and PDF export format:
private void processImage() {
// Create document
IFRDocument document = engine.CreateFRDocument();
try {
// Add image file to document
displayMessage( "Loading image..." );
String imagePath = SamplesConfig.GetSamplesFolder() + "\\SampleImages\\Demo.tif";
document.AddImageFile( imagePath, null, null );
// Process document
displayMessage( "Process..." );
document.Process( null, null, null );
// Save results
displayMessage( "Saving results..." );
// Save results to rtf with default parameters
String rtfExportPath = SamplesConfig.GetSamplesFolder() + "\\SampleImages\\Demo.rtf";
document.Export( rtfExportPath, FileExportFormatEnum.FEF_RTF, null );
// Save results to pdf using 'balanced' scenario
IPDFExportParams pdfParams = engine.CreatePDFExportParams();
pdfParams.setScenario( PDFExportScenarioEnum.PES_Balanced );
String pdfExportPath = SamplesConfig.GetSamplesFolder() + "\\SampleImages\\Demo.pdf";
document.Export( pdfExportPath, FileExportFormatEnum.FEF_PDF, pdfParams );
} finally {
// Close document
document.Close();
}
}
You can find all standard code samples here: Start → Programs → ABBYY FineReader Engine 10.5 → Code Samples Folder.
サインインしてコメントを残してください。