Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Delete text boxes containing given text on all pages?

Community Beginner ,
Jul 13, 2021 Jul 13, 2021

Copy link to clipboard

Copied

Is there a way to automatically delete all text boxes in a document that contain a specified phrase?

 

Basically like this online tool http://www.pdfdu.com/pdf-delete-text.aspx

TOPICS
Edit and convert PDFs, How to

Views

90

Likes

Translate

Translate

Report

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
Adobe Employee ,
Jul 13, 2021 Jul 13, 2021

Copy link to clipboard

Copied

Hi there

 

Hope you are doing well and sorry for the trouble. As described you want to delete the text box with specified phrase on all pages.

 

- Have you created this PDF file or have you got it from a different user?

- Is it the comment text box, that you are trying to delete? If yes, please select all of the text boxes you want to delete in the PDF file > Right Click > Select Delete.

 

You may also checkout the similar discussion here https://answers.acrobatusers.com/How-delete-text-page-header-footer-q200920.aspx

 

Let us know if you are referring to something else.

 

Regards

Amal

 

Likes

Translate

Translate

Report

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 Beginner ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Hi and thank you for your reply.

I should have clarified it is not a comment text box that I am trying to delete, just a plain old text box. 

 

More precisely, I would like to remove the entire textbox containing a specified word/phrase. 

 

I am attaching a short pdf file that illustrates this problem. I would like to delete all the text boxes saying "deleteme 2 of 17", "deleteme 3 of 17",...  i.e. the boxes are different every time, but they all contain the word "deleteme".   Blind text pdf with text to remove 

 

Now if use the online service linked in my original post, that will do the job. But I need to do this for longer and larger documents above the online service limit (also, surprisingly  their premium version lacks this feature, so I can't use that).

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Jul 15, 2021 Jul 15, 2021

Copy link to clipboard

Copied

LATEST

In the PDF page content that phrase is a text run. Not a text box. there is go guarentee that any text on a PDF will be in the same run with any other.  How it's setup depends entirely on the application that created it and the application that it is edited in. 

 

But, you could say that the text is in a block of text that is separate from all the other text on the page. I do not know of any tool that will do this specifically, but you could write a custom plug-in to do this.  

 

However, if you want to redact the phrase "deleteme # of #", then you can create a custom redaction pattern. 

Here's an article on the topic:

https://www.alnd.uscourts.gov/sites/alnd/files/Using_Redaction_in_Adobe_Acrobat_X_White_Paper.pdf

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Acrobat's Redact tools are made for you.

 

Capture_14.png

Likes

Translate

Translate

Report

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 Beginner ,
Jul 14, 2021 Jul 14, 2021

Copy link to clipboard

Copied

Thank you for your reply. However that is not quite was I was asking. This tool only removes the specified word/phrase, whereas I would like to remove the entire textbox containing a specified word/phrase. 

 

I am attaching a short pdf file that illustrates this problem. I would like to delete all the text boxes saying "deleteme 2 of 17", "deleteme 3 of 17",...  i.e. the boxes are different every time, but they all contain the word "deleteme".   Blind text pdf with text to remove 

 

Now if use the online service linked in my original post, that will do the job. But I need to do this for longer and larger documents above the online service limit (also, surprisingly  their premium version lacks this feature, so I can't use that).

Likes

Translate

Translate

Report

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