These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Plug-ins

MartinNadeau
Registered: Jan 12 2007
Posts: 2

I am trying to develope a plug-in to optimize the usability of the generic toolbar of Acrobat.
I need to enlarge important ToolButton and remove unused one.
 
To remove I use :
oldButton = AVToolBarGetButtonByName(toolBar, ASAtomFromString("Save"));
AVToolButtonRemove(oldButton);
 
And it's working well.
 
But to enlarge ToolButton I have tried to change the icon for a bigger one.
AVToolButtonSetIcon(oldButton,"IDI_ICON3");
 
I am not really sure of the icon loading too. The icon is loaded in the ressource and the file is named open.ico
 
Am I on the right track?
 
Is it possible to enlarge button by property?
Cause I haven't seen any property suitable.
 
Thanks
Martin Nadeau

My Product Information:
Acrobat Pro 6, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Martin,
This question is way beyond the scope of this site. You should be asking this on the Adobe Developer forum. There are lots of people there that builld plug-ins.

However, I think the whole toolbar button thing is a slighly contentious issue. I know for a fact that you used to be able to create button icons greater than 20x20. The approach you should take is to first try creating a larger, new toolbar button. If this works then you know it can be done and you can try modifying exsiting buttons. Be sure to do testing on Acrobat 8.

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script