Hide an Field in PDF File

Hello,
I have an PDF file and I need to Hide an field in PDF.
e.g In PDF I have an Field
TFN No 123 456 789

I need to Redact or hide (or Blur) the TFN No.
I have tried several ways.
Read pdf to Text (PDF pages are images, I tried using OCR engines as well) then Find the Value using Regex and replace them with empty value and again convert text to PDF (using write Text File), but no success.

How can I achieve this.
Any Suggestion on this ?
@Palaniyappan @Anil_G @Lalasa_Mulakaluri @Parth_Doshi @Yoichi @Harika_Mudiam

Thanks

@Gagan_Chaudhari007

-First, you need to identify the field in the PDF that you want to hide or blur. This could be done by examining the PDF structure or using a PDF library to programmatically identify fields.
-Once you’ve identified the field, you’ll need to use a PDF editing library to modify the PDF. This involves either hiding the field or applying some sort of blur effect to it.

OR

-Tools like Adobe Acrobat or PDF-XChange Editor provide options to edit PDFs manually. You can select the field and apply properties to hide it or apply a blur effect using these tools.

Cheers…!

Hi @Gagan_Chaudhari007
can you try this approach

1)Convert to other formats:
Convert the PDF to a format editable by UiPath activities like Word or Excel. Then, use UiPath activities to redact or mask the sensitive information before exporting back to PDF.

2)Generate reports from data:
If the PDF is generated from data sources, consider creating new reports excluding the confidential information or providing masked versions if possible.

Cheers…!

Hi @Gagan_Chaudhari007

You can try the follow package

You can find the desired field and change the value to *********, for example

Hello
I found some of the packages but not able to install them because of “No compatible versions for windows project”

Hello @Gagan_Chaudhari007 ,

Do you want to blur it or delete it ?

If you just want to delete the text, try convert the PDF to word.

  1. Read PDF with OCR. Save the output in a string variable.
  2. Install the Word Package, use the activity “Replace text in document” and replace it with a null space

image

  1. You can then use the activity in word - Save document as PDF and you should now be able to achieve your goal.

Let me know if it works