Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Script to Scale Image
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Script to Scale Image

 Post Reply Post Reply
Author
BabyBandit82 View Drop Down
New Member
New Member
Avatar

Joined: 03 Nov 2017
Location: Las Vegas, NV
Points: 2
Post Options Post Options   Quote BabyBandit82 Quote  Post ReplyReply Direct Link To This Post Topic: Script to Scale Image
    Posted: 03 Nov 2017 at 5:46am
Is there a script to use when placing an image using the button field with this script event.target.buttonImportIcon(); that will scale the image to fit the box proportionally?

Thanks,
BabyBandit


Edited by BabyBandit82 - 03 Nov 2017 at 5:49am
Back to Top
Sponsored Links


Back to Top
BAlheit View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Points: 1097
Post Options Post Options   Quote BAlheit Quote  Post ReplyReply Direct Link To This Post Posted: 03 Nov 2017 at 8:26am
You can specify this in the options of the button.
Back to Top
BabyBandit82 View Drop Down
New Member
New Member
Avatar

Joined: 03 Nov 2017
Location: Las Vegas, NV
Points: 2
Post Options Post Options   Quote BabyBandit82 Quote  Post ReplyReply Direct Link To This Post Posted: 03 Nov 2017 at 8:33am
Where is the face palm emoticon when I need it. Thanks I completely forgot about that silly advanced button for setting that. You are a rockstar.
Back to Top
gkaiseril View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Location: USA
Points: 4075
Post Options Post Options   Quote gkaiseril Quote  Post ReplyReply Direct Link To This Post Posted: 03 Nov 2017 at 3:24pm
There are a number of properties for the field object to control the scaling.

buttonFitBounds
buttonScaleHow
buttonScaleWhen

And then you have the fields rectangle to control the size of the button.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.033 seconds.