I am new to Adobe Acrobat Forms (and Designer) as well as JavaScript, so please be patient.
Some preliminaries:
I am using Adobe Acrobat Professional 7.0 as well as Adobe LiveCycle Designer in a Windows XP Home environment.
The context:
In trying to use the Image Field object for my users to specify a local (to their machine) image to submit via a static form (using XML via email), the Image Field object seems to have an image "sizing" property that only appears to have 3 values: resize (the source image) to fit (the field dimensions) preserving aspect ratio, resize to fit w/o preserving aspect ratio (which stretches the source image in both directions) and preserve image size (which effectively crops a larger image from where the image is anchored).
The problem:
I very much would like to override the 3 options to provide a 4th image resizing option where the image is resized preserving aspect ratio but sizing the image to where the smaller dimension fills the field resulting in some defacto cropping of the image along the larger dimension. Does this make sense?
From what I can tell, JavaScript using the Scripting Object Model does not support creating any sort of custom resizing algorithms or even a way to fudge it. I am hoping I am wrong!
Does anyone out there have any straightforward ideas that does not involve getting into serious programming using the SDK???
Thanks!!!
Bob Sienicki