How to set the Icon Image in Acrobat lesser in size then button dimensions

New Here ,
Oct 23, 2017

Copy link to clipboard

Copied

Dear friends,

I need to resize/scale the button icon Image to dimensions which are lesser in size than button dimensions.

Let say I have this image where the icon Image scaled to the Button's dimensions -

Screen Shot 2017-10-23 at 13.22.57.png

And I need it like this -

Screen Shot 2017-10-23 at 13.23.15.png

The star is png image with transparency, thus red - it is just button's fill property.

Javascript solution needed, please.

Thanks a lot!!

Most Valuable Participant
Correct answer by Test Screen Name | Most Valuable Participant

Make the PNG with a bigger transparent border.

TOPICS
Acrobat SDK and JavaScript

Views

259

Likes

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

How to set the Icon Image in Acrobat lesser in size then button dimensions

New Here ,
Oct 23, 2017

Copy link to clipboard

Copied

Dear friends,

I need to resize/scale the button icon Image to dimensions which are lesser in size than button dimensions.

Let say I have this image where the icon Image scaled to the Button's dimensions -

Screen Shot 2017-10-23 at 13.22.57.png

And I need it like this -

Screen Shot 2017-10-23 at 13.23.15.png

The star is png image with transparency, thus red - it is just button's fill property.

Javascript solution needed, please.

Thanks a lot!!

Most Valuable Participant
Correct answer by Test Screen Name | Most Valuable Participant

Make the PNG with a bigger transparent border.

TOPICS
Acrobat SDK and JavaScript

Views

260

Likes

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
Oct 23, 2017 0
Most Valuable Participant ,
Oct 23, 2017

Copy link to clipboard

Copied

Make the PNG with a bigger transparent border.

Likes

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
Reply
Loading...
Oct 23, 2017 0