Scale page (fill within 210x297 mm)

Post Reply
User avatar
magnussandstrom
Advanced member
Posts: 342
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Scale page (fill within 210x297 mm)

Post by magnussandstrom »

Hi, I trying to make an action list that scales pages (trimbox) proportionally within 210x297 mm (A4). But always fill the whole page, allowing 'cropping' of excess with/height, regardless of incoming dimensions. Can't figure out how to do that. Any suggestions?

Image
Attachments
test_crop.jpg
test_crop.jpg (179.38 KiB) Viewed 3236 times
bens
Advanced member
Posts: 252
Joined: Thu Mar 03, 2011 10:13 am

Re: Scale page (fill within 210x297 mm)

Post by bens »

I think this could work:

1. Select all (or whatever selection you need)
2. Scale selection to trim box height, keep width proportional
3. Select objects inside trim box (inside only, not overlapping)
4. AND
5. Scale selection to trim box width, keep height proportional

Step 2 will either give the size you want, or it will be too small. If it's too small then step 3 will select the objects, and step 4 combines it with the original selection. Then step 5 gives the size you want.

If step 2 already gave the size you want then step 3 will select nothing because the objects are already overlapping (and hence no longer inside) the trim box, and the rest of the Action List won't do anything.
Post Reply