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

event.target.buttonImportIcon(); command and images with alpha

Community Beginner ,
Oct 20, 2017 Oct 20, 2017

Hello everybody. Im creating an interactive pdf with buttons that can replace images using event.target.buttonImportIcon(); command. Some of these images are .png, so they have an alpha (transparency). The problem is that the replaced images with this command appears without alpha, and inserts white instead of transparency.

is there any way to insert .png images with their alpha? thanks!

TOPICS
Acrobat SDK and JavaScript , Windows
584
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
LEGEND ,
Oct 21, 2017 Oct 21, 2017

Probably better to make these replacements PDF.

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 ,
Oct 21, 2017 Oct 21, 2017
LATEST

I've never seen that happen, and I've imported lots of images with alpha settings. Either your imported image is not transparent as you think, or the button has a background color.

It you do not believe that either of these are the case, the post your file where I can download it and I'll take a look.

Also, include the version and type of Acrobat you are using.

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