Skip to main content
Participating Frequently
December 14, 2023
Question

Acrobat calculates value to fill object

  • December 14, 2023
  • 2 replies
  • 724 views

I have an interactive PDF that I have set up to calculate sums from questions asked. There are 8 pages of questions, 10 per page. The last page of the file shows each of the totals in a pie chart. I have it so that each total for each page is shown on top of its specific pie piece.

 

My question is; is there a way to have Acrobat fill in a pie piece with a color according to the value given for that pie piece?

 

Each piece can be filled with values of 0-100. If a piece has a value of 45 can Acrobat fill that frame/element 45% with a color from the inside point of the pie piece?

 

If Acrobat can not do this does anyone know of an interactive way to create this fill with a plugin or script?

This topic has been closed for replies.

2 replies

Thom Parker
Adobe Expert
December 15, 2023

I think this could be done using the Polygon annotation paired with a text annotation.

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Participating Frequently
December 15, 2023

I'll look into this. I was thinking about try67 option but it may create too large of a file. I'll have to play with it.

I appreciate the responses.

try67
Adobe Expert
December 14, 2023

There's no built-in way of doing that. If you create those pieces in advance as images and add them as fields or layers then it would be possible to show/hide them based on the results, though.