Skip to main content
Participant
May 10, 2021
Question

Convert AVIcon to PNG

  • May 10, 2021
  • 1 reply
  • 431 views

Hi,

We're looking at deploying a plugin (targetting both Acrobat Pro and Reader) and we need to convert an AVIcon object to a raster image file (ultimately a PNG file).

As far as we can determine, the AVIcon class is purposedly obsfucated and there are no utility functions to convert between AVIcon and other formats. We're following up here to see if we have missed anything.

As for alternatives, we'd appreciate if anyone could indicate how to convert a PDF page to a raster image from within Reader. We looked at PDPageDrawContentsToWindowEx() but it will throw. We were unable to find an example on how to this function in plugin and we're not sure we're passing in correct data.

Cheers,
Nuno

This topic has been closed for replies.

1 reply

Legend
May 10, 2021

"As far as we can determine, the AVIcon class is purposedly obsfucated" Yes. Since this is presumably your icon, you should capture and generate these PNGs during development, and bundle with the app.

 

"if anyone could indicate how to convert a PDF page to a raster image from with Reader" Goodness me, no, not in Reader. That would be giving away the crown jewels. This might also be blocked by the Reader plug-in license if you do find a trick.

NunoMGAuthor
Participant
May 11, 2021

Thank you for following up, Test Screen Name.

 

The AVIcon are not ours, no. They are the icons shown next to toolbar buttons and menu items. I believe the artwork belongs to Adobe and that's why we want to process the data in a plugin: to ensure compliance with the SDK and application license as well as with the copyright restrictions of the artwork.

 

Rest assured we're chasing tricks or hacks to go about this. We only wanted to confirm we weren't missing anything since, in our experience, access to this data is available in products from other vendors.

NunoMGAuthor
Participant
May 11, 2021

We're "not chasing". I hate it when I do that.