Skip to main content
Community Expert
February 11, 2025
Question

Object style that scales any object in percentages?

  • February 11, 2025
  • 2 replies
  • 376 views

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.

    2 replies

    Bob_Niland
    Community Expert
    Community Expert
    February 12, 2025

    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).

    Community Expert
    February 12, 2025

    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

    Community Expert
    February 12, 2025

    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.

    Bjørn Smalbro - FrameMaker.dk
    Community Expert
    February 12, 2025

    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.