Printing - Would like to control page orientation and font size

Brad Brown's Avatar

Brad Brown

22 Nov, 2021 06:44 PM

I'm using Marked2 as part of a workflow to print to PDF tables I am generating in code and emitting as Markdown-formatted text. Works great, BUT,

I don't find a way to specify that I want to print in landscape instead of portrait. There does not appear to be such an option in the print dialogue box.

AND, I'd like to control the font size on printing, and have not found how to do that in CSS. I can adjust the font size in the html>body element, but that seems to affect only what is rendered on screen. I also tried changing the font size in the #wrapper element inside @media print, and that did nothing at all for printing.

I'm sure I'm missing something - my CSS is pretty limited. Can someone point me in the right direction?

Thank you!

  1. Support Staff 1 Posted by Brett on 22 Nov, 2021 10:11 PM

    Brett's Avatar

    You can control page orientation with File->Page Setup...

    Did you try using the "Custom font size for export/print" setting in
    Preferences->Export? That should override whatever the base font size is
    for the current style.


  2. 2 Posted by Brad Brown on 22 Nov, 2021 10:30 PM

    Brad Brown's Avatar

    Thank you, I had not noticed page setup.

    Custom font size mostly works - I can’t get it lower than 9pt, but it’s better.  I guess I was going the hard route by trying to modify CSS, and still don’t know why it’s not working, but this is a good solution.  Thank you for the fast response!


  3. Support Staff 3 Posted by Brett on 23 Nov, 2021 12:20 PM

    Brett's Avatar

    Well, you were correct to edit media @print -> #wrapper font-size. You
    could try including !important on the font-size rule. Also, if you try
    the CSS route, be sure to disable custom font size as that will always
    attempt to override the CSS settings.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac