PDF export doesn't work at all

loukas's Avatar

loukas

03 May, 2017 05:29 PM

Hi, I've tried to make my first custom Css, very simple, but although Marked 2 reads it correctly at monitor, when I try to print the font size is always 10 pt (it seems to me) and line height is always 1. I've unchecked the button "Custom font size..." in the Preferences. I've got Marked 2 2.5.10.
Thanks a lot

  1. Support Staff 1 Posted by Brett on 03 May, 2017 06:03 PM

    Brett's Avatar

    You need to add an @media print section to your CSS that ensures font sizes. Include this at the end:

    @media print {
        body {
            font-size: 14pt !important;
            line-height: 2em !important;
            text-align: justify;
        }
        h1 {
            font-size: 1.5em !important;
            line-height: 0.8 !important;
        }
        h2 {
            font-size: 1.2em !important;
        }
    }
    
  2. 2 Posted by loukas on 07 May, 2017 11:15 AM

    loukas's Avatar

    Thanks Brett, I've done as you told me, but the font-size in the pdf is 10pt yet

Reply to this discussion

Internal reply

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

Attaching KB article:

»

Already uploaded files

  • Compiti_in_classe.css 656 Bytes

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

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