Support » Plugin: Print-O-Matic » Automatically scale page?

  • Resolved nelsonkl23

    (@nelsonkl23)


    I’m hoping to be able to print to a single page. The element to be printed is a calendar, so having it spread to two pages isn’t an option. The calendar varies in size from month to month, but I know the percent scaling number that works well across the board. Is there any way to automatically set all printed pages to this preferred size? I feel like a bit of CSS would/should work, but I’m not sure where to start.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    Do any of these solutions resolve your issue?

    @twinpictures – no, I don’t think so. This isn’t exactly what I’m looking for. The link seems to be talking about ensuring that individual elements are printed at the same size and that’s not what I’m looking for. I’m looking to scale a printed page down to 70%. (So ultimately, the elements on different pages would be printed at different sizes. But each month of the calendar would fit on a single page.) You can do this in the print dialog box, but that’s not something many/most of the people who will be printing from this site know how to do. I’d love to somehow set that to automatically be the default, to scale down to 70%.

    Plugin Contributor twinpictures

    (@twinpictures)

    Not sure what more to do, other than investigate css solutions:

    @media print {
        body {transform: scale(.7);}
        table {page-break-inside: avoid;}
    }
    

    What you are trying to do is control the users browser print dialogue settings, and that’s not possible, programmatically. The only option we can think of is to scale the print css and see if you can shrink the calendar to fit. Good luck!

    @twinpictures – thank you! that mostly works, though I’ll have to play around with it to get the perfect number (results are slightly different than the scale on the print dialog box)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Automatically scale page?’ is closed to new replies.