Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum. |
Rotate a Stamp |
Post Reply ![]() |
Author | |
pmcnulty ![]() New Member ![]() ![]() Joined: 24 May 2017 Points: 2 |
![]() ![]() ![]() ![]() Posted: 24 May 2017 at 11:42pm |
Hi I'm trying to create a stamp where when the user drags the stamp onto the document it runs JavaScript to create a popup dialog asking the user for an angle to rotate the stamp and the stamp is placed on the document with that rotation. I have created and can run the dialog but can't work out how to access the properties or get the stamp to rotate
the code I have is :
|
|
![]() |
|
Sponsored Links | |
![]() |
|
try67 ![]() Senior Member ![]() Joined: 15 Jul 2011 Points: 628 |
![]() ![]() ![]() ![]() |
You can't do that, because when the code is executed the stamp object doesn't exist yet.
One possible workaround is to add a time-out that executes a code to rotate the last annotation added to the file some time after the dialog is closed, maybe after 500ms or so. |
|
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com |
|
![]() |
|
pmcnulty ![]() New Member ![]() ![]() Joined: 24 May 2017 Points: 2 |
![]() ![]() ![]() ![]() |
Thanks try67
was hoping I would be able to access the underlying stamp object that was being place will have a look at a different approach
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |