Print Page | Close Window

Addannot default color

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=1213
Printed Date: 24 Jun 2019 at 10:08am
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Addannot default color
Posted By: pierrotdu31
Subject: Addannot default color
Date Posted: 26 May 2014 at 4:35pm
I search the net for the following information but i m not able to find it :
We want to use acrobat XI pro to complete numerical procedures in pdf format.
The operator has to complete pdf by adding results with comment tool.
I'd like to create 3 buttons, one for add comment in Red, one in blue and one in green.

My problem is I can't find the property corresponding to default color when "Add comment" is selected.
I can easily had colored comments  or modify existing comments color using javascript but I m unable to change default color when Add coment tool bar opens.
Does one of you knows a corresponding property?
Thanks for your help

PS : I'v found one key in registry to set this parameter but it is only read at acrobat opening and written at close time.



Replies:
Posted By: gkaiseril
Date Posted: 26 May 2014 at 5:35pm
You cannot change another user's registry through Acrobat JavaScript,

You canot change the default comment settings ofanother user.

It is a bad practice to change the preferenece settings of other users. There could be very good reasons as to why the defult preferences are set the way they are.


Posted By: try67
Date Posted: 26 May 2014 at 8:56pm
I really don't understand why you would need to do that. If you're using addAnnot you can set the color of the annotation in your code. Why mess around with the default settings of the user (which you can't technically do, anyway)?


-------------
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com


Posted By: pierrotdu31
Date Posted: 27 May 2014 at 8:29am
Thank's for answers.
I don't want to change other user default settings but mine.
My problem is that when you choose comment tool, it is very fastidious (and loss of time : we try to fill numerical procedure industrially as fast as manually) to select color and (the more important) operator must only choose one of three normalised color (green, blue and red).
I wanted when operator click on green icon, Add comment tool opens with color text set as green but my feeling is that this is not possible.

uploads/1702/snap.jpg - uploads/1702/snap.jpg
Thank you for your cooperation.


Posted By: try67
Date Posted: 27 May 2014 at 9:19am
You're right, it's not possible.


-------------
- Acrobat Expert - Contact me personally at try6767@gmail.com
Check out my custom-made scripts website: http://try67.blogspot.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net