PDF Metadata
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
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 21 Nov, 2013 03:15 PM
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 Posted by metawops on 22 Jan, 2017 04:18 PM
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 Posted by aaaaaa on 11 May, 2022 05:15 PM
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:
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.Support Staff 4 Posted by Brett on 30 May, 2022 03:59 PM
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.