Printing - Would like to control page orientation and font size
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!
Brad
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Brett on 22 Nov, 2021 10:11 PM
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.
-Brett
2 Posted by Brad Brown on 22 Nov, 2021 10:30 PM
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!
Brad
Support Staff 3 Posted by Brett on 23 Nov, 2021 12:20 PM
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.
-Brett