Print Page | Close Window

Script to Scale Image

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
Printed Date: 21 Oct 2019 at 11:35pm
Software Version: Web Wiz Forums 11.10 -

Topic: Script to Scale Image
Posted By: BabyBandit82
Subject: Script to Scale Image
Date Posted: 03 Nov 2017 at 5:46am
Is there a script to use when placing an image using the button field with this script; that will scale the image to fit the box proportionally?


Posted By: BAlheit
Date Posted: 03 Nov 2017 at 8:26am
You can specify this in the options of the button.

Posted By: BabyBandit82
Date 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.

Posted By: gkaiseril
Date 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.

Print Page | Close Window

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