Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Sanitize document using custom patterns

New Here ,
Mar 22, 2023 Mar 22, 2023

Hello:

 

I want to create my own pattern to use for sanitize a pdf document, using Adobe Acrobat Pro.

Is it possible. I only have available:

Phone numbers

Credit cards

Social Security numbers

Email

Dates

 

Thank you vey much.

 

TOPICS
How to , JavaScript
1.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
1 ACCEPTED SOLUTION
Community Expert ,
Mar 22, 2023 Mar 22, 2023

You must edit the "SearchRedactPatterns.xml" file. Copy-paste an existing pattern and edit it (this requires some GREP knowledge).

 

Capture_2303221554.pngexpand image


PDF Acrobatic, InDesigner & Photoshoptographer

View solution in original post

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2023 Mar 22, 2023

@Francesc290083726es8 

 

When you say "sanitize", do you mean "redact" or do you mean something else?

 

In Acrobat, "sanitize" means to remove information that is not visible in the file, such as comments, metadata, hidden layers, and text that is hidden either because it has no fill or stroke or because something else is in front of it.

 

Jane

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 22, 2023 Mar 22, 2023

Hello Jane:

Yes. I mean Redact. I need to use custom pattern. See picturePatterns.pngexpand image

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2023 Mar 22, 2023

You must edit the "SearchRedactPatterns.xml" file. Copy-paste an existing pattern and edit it (this requires some GREP knowledge).

 

Capture_2303221554.pngexpand image


PDF Acrobatic, InDesigner & Photoshoptographer
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 22, 2023 Mar 22, 2023

Hello JR:

This is exaclty I was looking for. Thank you very much for your help.

 

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 22, 2023 Mar 22, 2023

Is there any manual to learn how the pattern must be build? It's different from I found Regex syntaxis on internet.

Thank you very much

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2023 Mar 22, 2023
LATEST

I believe it uses the JavaScript RegExp syntax.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines