Skip to main content
Inspiring
July 2, 2019
Question

Remove text lines that are empty?

  • July 2, 2019
  • 2 replies
  • 2342 views

In our workflow for pre-press, we get a lot of documents that we need to optimize, and very often something that gets in the way are lines with empty text. Usually it's just a space or a hard return, no other characters are in the text field. It tends to throw off the whole page when we try to automatically scale it because the page is using that empty text box when it scales and the text is in a weird spot. If we could remove these sorts of text boxes, that would be amazing.

Seems like a simple script should do the trick. Any help appreciated.

This topic has been closed for replies.

2 replies

try67
Community Expert
Community Expert
July 2, 2019

This is only possible if the text is located inside of comments or fields, not if it's static text.

Bernd Alheit
Community Expert
Community Expert
July 2, 2019

Does you mean form text fields?

ShaunreAuthor
Inspiring
July 2, 2019

No, I mean regular text, like if you exported a word document to pdf. Wherever there's a return, there's a blank text item that I'm referring to.

try67
Community Expert
Community Expert
July 2, 2019

You can try the Edit Text tool, but PDF files were not really meant to be edited in this way, so the results are not likely to be very good.

This is really something that needs to be done on the original file, and then a new PDF file needs to be created from it.