PDF Metadata

flip's Avatar

flip

21 Nov, 2013 03:12 PM

I have various metadata at the beginning of my mmd files (mainly because I send them to LaTeX at some point) and noticed that Marked doesn't seem to care/do anything with this stuff when one exports to PDF. It might be nice to have this exported (where it makes sense) to the appropriate PDF metadata?

Title:           Repeated Measures ANOVA in R
Author:         Flip Phillips
Affiliation:    Skidmore College  
Date:           Fall 2013
Version:        1.0
Comment:        No Comment
Class:          Perception, Stats
Web:            http://www.skidmore.edu/~flip  
email:          [email blocked]
Marked Style:   FlipOne  
Base Header Level:  1
  1. Support Staff 1 Posted by Brett on 21 Nov, 2013 03:15 PM

    Brett's Avatar

    I will look into this, but I imagine it will be a non-starter with the
    current method of PDF generation. Right now Marked simply "prints" the
    WebKit preview to a PDF, with or without pagination. I may be mistaken,
    but I don't think I can control metadata on the output. I will certainly
    look into it, though, I already have mechanisms in place for gathering
    metadata and standard fields would be easy to pick up.

  2. 2 Posted by metawops on 22 Jan, 2017 04:18 PM

    metawops's Avatar

    Hint: from within macOS’s Preview app you can at least modify author, title, subject and keywords of the PDF via Print>PDF>Save as PDF… – despite the fact that it IS already a PDF. 

  3. 3 Posted by aaaaaa on 11 May, 2022 05:15 PM

    aaaaaa's Avatar

    Any headway on this? I've spent a bit of time messing with various metadata properties and export options, but so far I've had no luck getting Marked 2 with a custom processor (pandoc) to render PDF files with the metadata properties I specify.

    I'm using these pandoc arguments in Marked 2:

    -f markdown+smart+strikeout+superscript+superscript+pandoc_title_block+rebase_relative_paths -t html5
    

    I've also tried adding -s, --standalone and +yaml_metadata_block but this too failed to set the PDF metadata properties of the output document.

  4. Support Staff 4 Posted by Brett on 30 May, 2022 03:59 PM

    Brett's Avatar

    Marked’s PDF generator uses the WebKit print system, so anything Pandoc would apply is lost in the process. To get pandoc’s meta, you’d have to output the pdf from the command line, not via Marked.

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

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