Hidden text can be selected when Drawing HTML text with Paginate

Hello!
I'm writing basic HTML text using PdfHTMLTextElement with paginate support. (This is because there is issue related to HTML that is nos displayed correctly on reports + RDLC ID: 292637 ). With this object the HTML text is displayed correctly but there is hidden text on resulted PDF. If the user search a text then many results appeared. I have tried different things but all text (visible and hidden) is always on PDF. So, my idea was to use redaction to clean hidden text but this is partially done, there is still some hidden text that can be selected and searched.

I'm attaching the console application to see the issue. When running you can see the following files on debug folder.
- xxxxxx
Output.pdf: pdf file with HTML text. Text can be searched or selected on blank zones.
- xxxxxxOutput - TEST.pdf: Redaction is applied here in this case for all lines collection but for all section I had the same result:   Text can be searched or selected on redacted zones.
- xxxxxx
Output - new.pdf: In this file section redaction is used with no result in all section. Additionally when I applied the same Redaction on different pages the visible text in the following pages is hidden.

Well, any help is appreciated.


Attachment: PDFText_f7105832.zip

4 Replies

GK Gowthamraj Kumar Syncfusion Team July 13, 2021 10:42 AM UTC

Hi Gabriel, 
 
Thank you for contacting Syncfusion support. 
 
We were able to reproduce the reported issue with provided details on our end. Currently, we are validating on this and we will update the further details on July 15th 2021. 
 
Regards, 
Gowthamraj K 



GK Gowthamraj Kumar Syncfusion Team July 15, 2021 01:56 PM UTC

Hi Gabriel, 
 
Thank you for your patience. 
 
On further analysis, we are internally convert the PdfHTMLTextElement as metafile while drawing HTML string in a PDF document using PDF library. In that, we have created a one metafile image for whole HTML text and view the particular part of that metafile based on the page size using clip region. So that remaining hidden text are founded in search result. It is our default behaviour. While applying redaction process for this output pdf document, It does not redact content form unclipped region. 
 
Regards, 
Gowthamraj K 



GM Gabriel Mazzocca July 15, 2021 02:03 PM UTC

Hi Gowthamraj K,

Ok, I will try a different approach in that case.

Thanks!



GK Gowthamraj Kumar Syncfusion Team July 16, 2021 04:35 AM UTC

Hi Gabriel,  
 
Thank you for your update. Please let us know if you need any further assistance with this. 
 
Regards, 
Gowthamraj K 


Loader.
Up arrow icon