Copy link to clipboard
Copied
I would like to make an object style that scales any object i any size or shape a fixed number of percent. Like, if I import a graphic, and I would like to scale it 10% uniformly. Can that be done? Can I create a set of object styles that scales any object in like, 5, 10, 15...% ? ...
I have been playing around with this, but it seems more tricky than I expected.
Copy link to clipboard
Copied
Hi Bjørn,
I just tested this, and although there is a scaling option in the Graphics section of the Object Style Designer, this setting does not scale my graphics down.
What did you try? Did you see other options?
Of course it would not be too difficult to write an ExtendScript script for this.
Best regards, Winfried
Copy link to clipboard
Copied
I have this old template where I was experimenting with adding premade object styles to my templates.
https://framemaker.dk/images/2025/objectstyles/object_styles.zip
This particular template allows you to scale arrows and squares using object styles.
I am hoping to find a way to make an object style that will scale an imported graphic up/down without moving it or changed its orignal relative dimensions.
... but it seems FrameMaker does not really keep track of a graphics original size. I think... I wonder whether there is a way around this?
And you are right - one could script this (not me, though 🙂 ) but I would like object styles because it would be a nice facility to incorporate in templates.
Copy link to clipboard
Copied
In the preferences there is this option:
Auto-Scale Image Along Width (on Insertion)
I figure that this option interferes with any scaling in an object style.
When I inserted an EPS graphics file, it was automatically scaled down to the text frame width, although this option is deactivated.
When I clicked my 50 % object style, the width was not changed, but the height was changed to 50 %.
When I tested this with a JPG file which is smaller in size than the text frame width, nothing happens. No scaling when inserted. No scaling with an object style.
Copy link to clipboard
Copied
I have this resolved in the read/write rules for my picto's:
is fm graphic element;
attribute "file" is fm property file;
fm property dpi value is "300";
fm property import size value is "15mm 15mm";
fm property position value is "soutside";
fm property near-side offset value is "-15mm";
Hope this helps a little bit
Copy link to clipboard
Copied
This is % relative to what, and for what output workflows?
Restricting the context to just PDF or print, I presume it's % of original size, and an issue there is whether the imported object has declared dimensions. For example GIF has no data structures for extent dimensions (although 72ppi is often presumed).