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

Convert AVIcon to PNG

New Here ,
May 10, 2021 May 10, 2021

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript , Windows

Views

289

Translate

Translate

Report

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
LEGEND ,
May 10, 2021 May 10, 2021

Copy link to clipboard

Copied

"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.

Votes

Translate

Translate

Report

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
New Here ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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
New Here ,
May 11, 2021 May 11, 2021

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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