Page Numbers on PDF export?

dan's Avatar


16 Jul, 2012 10:06 PM

What would I need to do to get a page number in the upper right corner of a PDF created using the Print/PDF export function?

And then what would it take for the page numbers to start on page 2 (skipping the cover page)?

  1. Support Staff 1 Posted by Brett on 16 Jul, 2012 10:12 PM

    Brett's Avatar

    Because the Webkit printing system doesn't recognize @page directives, this is currently not possible.

  2. 2 Posted by Jason Hu on 08 Aug, 2012 07:34 AM

    Jason Hu's Avatar

    I also run into this @page issue when I try to specify print page size in css. If webkit doesn't support it. Could you make a print options dialog to specify print page size/orientation, etc. ?

  3. Support Staff 3 Posted by Brett on 08 Aug, 2012 01:45 PM

    Brett's Avatar

    Already done for version 1.5.

  4. 4 Posted by Jason Hu on 09 Aug, 2012 03:04 AM

    Jason Hu's Avatar

    That's great. Hopefully I will be able to use Marked to generate PDF based slides...

    Looking forward to the release in MAS.

  5. 5 Posted by Kent Georgeson on 19 Feb, 2013 06:52 PM

    Kent Georgeson's Avatar

    When is 1.5 due out?

  6. Support Staff 6 Posted by Brett on 19 Feb, 2013 07:18 PM

    Brett's Avatar

    Sorry, don't have a firm answer for that yet, but it's close.

    -Brett (on iPhone)

  7. 7 Posted by Tim A. on 02 Jul, 2013 01:08 AM

    Tim A.'s Avatar

    How close? It's been over 4 months since your comment...

  8. Support Staff 8 Posted by Brett on 02 Jul, 2013 05:50 AM

    Brett's Avatar

    Hard to say, really. It's a big release and I have a day job.

  9. 9 Posted by Geoffrey Odhner on 09 Oct, 2017 09:34 PM

    Geoffrey Odhner's Avatar

    This was supposed to be done for version 1.5, and we're at 2.5 now, with no answers that I can find as to how to do this. I've searched help, the knowledgebase, and the discussions, but come up empty. This sucks. Will this feature ever be realized?

  10. Support Staff 10 Posted by Brett on 09 Oct, 2017 10:48 PM

    Brett's Avatar

    Have you looked at the export preferences?

    - Brett

  11. 11 Posted by GG on 20 Jun, 2019 11:04 AM

    GG's Avatar

    Hey Brett,
    My apologize that I am re-asking this question with inserting the page number in the pdf-export. I repeatedly tried using the print option, but no page-number had been inserted in the resulting pdf-file. In the export preference section (please see the screenshot attached) I can't see an option referring to page numbers (except for "page numbering offset"). Could you please point me in the right direction?

    System settings/info: I am using the trial version of marked2: Version 2.5.33 (974), OS: OSX 10.14.5

    Thanks a lot, GG

  12. Support Staff 12 Posted by Brett on 20 Jun, 2019 11:33 AM

    Brett's Avatar

    Add %page in one of the fields under headers/footers. The other variables available are listed in the help (click the question mark).

    - Brett

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