Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

HowTo: toolbar button icons for Mac-based Plugins?

Explorer ,
Aug 16, 2023 Aug 16, 2023

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?

TOPICS
Acrobat SDK and JavaScript , Mac
432
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 16, 2023 Aug 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.  

 

Reader64_DisableNew.jpgexpand image

 

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 16, 2023 Aug 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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 16, 2023 Aug 16, 2023
LATEST

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

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines