Skip to main content
AODA_Developer
Inspiring
August 16, 2023
Question

HowTo: toolbar button icons for Mac-based Plugins?

  • August 16, 2023
  • 1 reply
  • 646 views

I'm trying to simplify the UI for a C++ plugin I'm working on for Acrobat Pro (Mac platform-only at this point in time).

 

I can add buttons to the toolbar in the latest version of Acrobat, but I cannot seem to create or assign the icons correctly. I'm following the code that is supplied in the "Custom Tool" example in the PluginSupport Samples and I'm not getting any errors on any of the system calls (AVAcquireSpecialFilePathName,  ASFileSysOpenFile, PDDocOpenFromASFile, or AVIconCreateFromPDF), but the icon comes up as the default "Lego Block".

 

Has anyone successfully created a custom Plugin Button for the Toolbar on a Mac? If so, would you be willing to share the code?

This topic has been closed for replies.

1 reply

Thom Parker
Community Expert
August 16, 2023

Are you using the new 64 bit Acrobat UI?  The Plug-in UI for this version is broken on both Windows and Mac.  I originally thought this was just a Beta issue, but it  appears to be broken in the release version as well. It also doesn't display JavaScript toolbar icons. Revert to the old UI and you'll see your icons.  

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
AODA_Developer
Inspiring
August 16, 2023

Hi Thom, thanks for getting back to me – I found the "View > Disable New Acrobat" in the macOS version (top menu, in case any Mac users out there a looking for it) and lo and behold, it worked! My tools have icons!

 

And given the number of posts/compliants here about "going back to the old UI" – if anyone out there wants to switch back you can do so by selecting "View" from the top menu and then "Disable New Acrobat". This will give you the old, tried and true layout. Not that I minded the new layout, but if it's broken, then it's broken and I need it to work to so that I can work! I'll submit a bug report to Adobe to see if we can get this fixed in the new UI.

 

Thanks again!

Thom Parker
Community Expert
August 16, 2023

Yes, please submit a bug report!  The more complaints they get the better. 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often