You give us an exemple, to make pdf image searchable using aspose pdf and tesseract ocr, but can we do this using only aspose products( using aspose ocr instead of tesseract) if yes can you give me a code exemple for prospection purpose?
Thanks for contacting support.
As per your requirement, you can first Convert PDF Pages to JPEG Images and then perform OCR on image file. But when using this approach, the formatting of text is not preserved and text is recognized as plain text.
In case you have any further query or you encounter any issue while using our APIs, please feel free to contact.
Exception in thread “main” class com.aspose.pdf.internal.ms.System.z9: At most 4 text fragments can be added in evaluation mode.
So if i understand a license is needed to test this fonctionnality?
Thanks for sharing the details.
The reason above mentioned error is appearing is because you might be using the API in trial mode. Please note that trail / evaluation version has a limitation of manipulating 4 objects.
Therefore in order to test the APIs without any limitations, please request a 30 days temporary license.
Thanks for your anwser.
is it exact than hocr function is in development in aspose?
Can you give me a release or pre-release date please?
Our colleague Nayyer has already shared a solution as per your requirement. You can convert PDF pages to images with Aspose.Pdf API, and then retrieve text from the images with Aspose.OCR API. Kindly let us know if the proposed solution is different than your requirement.
Besides this, if your source PDF has images, then you can retrieve these images from the PDF file, finally, pass these images to Aspose.OCR API to retrieve the text.
This is to update you that our product team is currently working on restructuring the existing APIs and improving the overall quality of OCR results and already supported features. hOCR functionality feature has been logged into our system with ID OCRNET-2945.
Because of the complexity of this feature, it can take some time and at the moment, we are not in a position to share any reliable ETA. However, we will update you once our product team brings this feature on their roadmap. We are sorry for the inconvenience.
Hi, i’m happy to read in https://docs.aspose.com/display/OCRJAVA/Aspose.OCR+for+Java+17.6+-+Release+Notes than hocr is ready, but i can’t find any documentation about this, couls send me a link for this docs please?
We have asked for details on this feature from our product team as details are internal to the API. We will share the information with you as soon as it is available.
Thank you for your reply.
Could you make sure that I have this information in the next few days please?
Indeed my manager should take this week, a total license java, to start an urgent development, and it would be a shame, knowing that the function exists, to have to develop a first version using an external API, for example tesseract, lack of documentation, and only to be able to use the HOCR aspose function later.
Thank you for your patience. This is to update you that hOCR feature is not supported. Because of the complexity of this feature, it will take time. Due to a mistake wrong information got updated and published. We apologize for the misconception.
We are very sorry for the inconvenience caused.