Replace images with text

Hello,

I've a PDF document with a table that has several rows. In two columns of this table there are some icons (images) that I would like to replace with a text. The replacement text should be related to the effective icon replaced.

Example
There are three kind of icon: one represent "Accepted", one "Rejected" and the last "Pending".
In a column of a table, for each row, one of those three icons appears.

How can I, using the PDF control, replace all the icons representing "Accepted" with the text "OK", all the icons representing "Rejected" with the text "KO" and all the icons representig "Pending" with the text "PP"?

Is there a way to extract information about an image in the PDF file that could tell me information like its name or some other information usefull to its identification?

Any suggestion is highly apreciated.

11 Replies 1 reply marked as answer

GK Gowthamraj Kumar Syncfusion Team February 11, 2021 12:51 PM UTC

Hi Arturo, 

Thank you for contacting Syncfusion support. 

Currently, we are creating the sample to achieve your requirement “Replace the images with text” in our end and we will update the further details on February 15th 2021. 

Regards, 
Gowthamraj K 



GK Gowthamraj Kumar Syncfusion Team February 15, 2021 05:08 PM UTC

Arturo,  

Thank you for your patience.  

We have created a sample to achieve your requirement in our end. We have to perform the OCR processing to that loaded document and find the particular text and replace it with some other text. Please find the sample from below, 


Please refer to this below link for more information, 

Please let us know if you need any further assistance with this. 

Regards,  
Gowthamraj K 


Marked as answer

AB Arturo Buonanni February 16, 2021 11:20 AM UTC

Hello,

Thank you for your example but it is not what I want to achive. I think you misunderstood my request.
In the example you use ocr to find an image that has the text "PDF" in it and then replace that part of the image with the graphic rapresentation on another text.

I don't need to replace text in an image.
I need to replace the whole image with some text that has to be inserted in the output PDF as "text" and not as "image".

I thought I could scan the PDF structure, look at the images contained, categorize them by some information they have (here is where I need help as I don't know what informations the Image object has) and then replace all images of a certain category with a specfied text. I don't think there is any need to ocr the PDF as images don't contains any text at all.

Thanks for your help.


GK Gowthamraj Kumar Syncfusion Team February 17, 2021 02:29 PM UTC

Hi Arturo, 
 
Sorry for the inconvenience caused. 
 
We are analyzing your requirement “Replacing the whole image with text in the PDF document” on our end and we will update the further details on February 19th 2021. 
 
However, can you please share the more details such as input document, expected output screenshot to check in our end. So, that it will be helpful for us to analyze and assist you further on this.  
  
Regards, 
Gowthamraj K 



AB Arturo Buonanni February 18, 2021 11:29 AM UTC

Hello,

Here's a sample PDF. I need to replace the images that are next to the numbers with a text that is related to the specific image. Same image means same text.

Thanks.

Attachment: Sample_8eebe705.rar


GK Gowthamraj Kumar Syncfusion Team February 19, 2021 02:34 PM UTC

Hi Arturo, 
 
Thank you for your patience. 
 
We have analyzed your requirement, it is not possible to replace the image with text, we could not find the same images in PDF pages and we could replace it with some text. We can only replace the images with some other images. So, we could not proceed further on this.   
 
Regards, 
Gowthamraj K 



AB Arturo Buonanni February 22, 2021 07:54 AM UTC

Hello,

isn't it possible to completely replace an image with some text? Any text?


GK Gowthamraj Kumar Syncfusion Team February 23, 2021 05:24 PM UTC

Hi Arturo, 

At present, we do not have support for replacing the complete images with any text in the PDF document. We can only replace the images with some other images. However, we are analyzing the other workaorund possiblities to achieve your requirement on our end and we will update the further details on February 25th 2021. 

Regards, 
Gowthamraj K 



AB Arturo Buonanni February 23, 2021 09:02 PM UTC

Any help is highly apreciated,

Thank you.


GK Gowthamraj Kumar Syncfusion Team February 24, 2021 10:33 AM UTC

Hi Arturo,  

As we said earlier, we are analyzing the other workaround possibilities to achieve your requirement on our end and we will update the further details on February 25th 2021.  

Regards,  
Gowthamraj K 



RB Ravikumar Baladhandapani Syncfusion Team February 25, 2021 05:31 PM UTC

Hi Arturo, 
 
Sorry for the inconvenience caused. Still, we are analyzing the possibilities to achieve your requirement and we will update the further details on March 1st, 2021. 
 
Regards, 
Ravikumar. 


Loader.
Up arrow icon