Skip to main content
November 10, 2016
Answered

Variables in graphics PDF

  • November 10, 2016
  • 1 reply
  • 463 views

Hi,

I have question about PDF structure or JavaScript. I have page with graphics object like this:

q 0.999985 0.999985 0.999985 RG /a0 gs 0.5 w 2 J 0 j [] 0.0 d 3.25 M 40 980.602 1920 -941.387 re S Q

In my task I used graphics for easy vector interactive maps. Is there way how to insert “variable” because I would like make small changes in map and map is too big. It is possible used multiple copies of graphics with small changes but why. I would like change fill color (0.999985 0.999985 0.999985 RG) or text contain.  My idea is prepare array with constants and during javascript set position in array and in graphics used this reference.

Thank you.

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

Acrobat JavaScript can't manipulate PDF page content at that level. You'll need the plugin SDK for that kind of thing.

1 reply

Joel Geraci
Community Expert
Joel GeraciCommunity ExpertCorrect answer
Community Expert
November 10, 2016

Acrobat JavaScript can't manipulate PDF page content at that level. You'll need the plugin SDK for that kind of thing.

November 10, 2016

Thank you that's exactly what I needed.