Skip to main content
Participating Frequently
September 4, 2018
Answered

Fill color for all shapes

  • September 4, 2018
  • 2 replies
  • 881 views

Hi all,

I have a single page PDF with lots of shapes scattered around. There are some textboxes above some of the shapes as well (hence I cannot use Ctrl+A). Is there anyway that I could select all shapes (not textboxes) and set their fill color?

This is what I am trying to achieve in one shot (if possible):

This topic has been closed for replies.
Correct answer Joel Geraci

The annotations were added using Bluebeam Revu. Generally, Bluebeam is interoperable with Acrobat but these annotations are a bit odd. They use the IRT (In Reply To) Dictionary to group multiple annotations of different types into what appears to be a single annotation. Acrobat will display these properly but Acrobat JavaScript can only see each individual annotation. Additionally, in order to produce arcs, it looks like there are entries in the annotation dictionaries that are outside of the PDF specification. Unfortunately, this means you can't just look for an empty circle and replace it with a filled circle.

You might be able to fill the closed objects using a plugin but you can't do it with JavaScript.

2 replies

Joel Geraci
Community Expert
Community Expert
September 4, 2018

Are the symbols page content or are they annotations on the page. They look like annotations to me. If so, they're easy enough to replace with filled versions of the same annotation. Can you share the PDF? If so, I could tell you for sure.

Participating Frequently
September 4, 2018

Joel Geraci , they are all annotations.

I couldn't attached sample PDF file to the post. You can download it from here

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
September 4, 2018

The annotations were added using Bluebeam Revu. Generally, Bluebeam is interoperable with Acrobat but these annotations are a bit odd. They use the IRT (In Reply To) Dictionary to group multiple annotations of different types into what appears to be a single annotation. Acrobat will display these properly but Acrobat JavaScript can only see each individual annotation. Additionally, in order to produce arcs, it looks like there are entries in the annotation dictionaries that are outside of the PDF specification. Unfortunately, this means you can't just look for an empty circle and replace it with a filled circle.

You might be able to fill the closed objects using a plugin but you can't do it with JavaScript.

try67
Community Expert
Community Expert
September 4, 2018

Not possible in Acrobat. This is something that needs to be done before the file is converted to PDF.