Optical character recognition (OCR)

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for Java (v4)  /  Optical character recognition (OCR)

DynamicPDF Generator for Java (v4) Forum

 Feb 09 2010 1:15 AM
Hello Everybody,
I am having a buffered image of the JPanel, While generating pdf I want the text on that panel to be printed in text format while the images must retain the image format. Can we have OCR implemented in this case?
Posted by a ceTe Software moderator
Hello,

There is no OCR features in our product. We add the images as is to the PDF document without any modification. It is not possible to read the text present in an image. You can add text on top of an image using the Label, TextArea page elements but you should know the X, Y location of the text to add.

Thanks,
ceTe Software Support Team.
Hi,
  Thanks for your quick reply. To overcome this issue I am now using the object of the JPanel and getting the elements one by one. While doing so I am able to seperate out the image.
  In these images there are some table. I am using com.cete.dynamicpdf.pageelements.Table, now here I am having Jtree clubbed together within the table and every node is having it's details in other three columns. For plotting tree node image and it's asssociated label I am using com.cete.dynamicpdf.pageelements.Group. Now I am having all the node images and labels printed inside the table one after another in the rows in a single line. Here can I create more columns and make the width of border for cell as 0? Because I didn't found in the api any method to set border width size.
Posted by a ceTe Software moderator
Hello,

It is not possible to set the border width to a specific cell of a table, however you can set the border width to the table by using the setBorderWidth method of the Table element. If you set it to "0" it makes the table borders invisible. You can add any number of columns you need in the table.

If you need borders to other rows or cells then you will have to add the lines by using the Line page element wherever you need a border.

Thanks,
ceTe Software Support Team.

All times are US Eastern Standard time. The time now is 2:43 AM.