tag:support.markedapp.com,2011-09-11:/discussions/questions/3819-pdf-metadataMarked: Discussion 2022-05-30T15:59:58Ztag:support.markedapp.com,2011-09-11:Comment/301209852013-11-21T15:12:43Z2013-11-21T15:12:45ZPDF Metadata<div><p>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?</p>
<pre>
<code>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: flip@skidmore.edu
Marked Style: FlipOne
Base Header Level: 1</code>
</pre></div>fliptag:support.markedapp.com,2011-09-11:Comment/301209852013-11-21T15:15:32Z2013-11-21T15:15:32ZPDF Metadata<div><p>I will look into this, but I imagine it will be a non-starter
with the<br>
current method of PDF generation. Right now Marked simply "prints"
the<br>
WebKit preview to a PDF, with or without pagination. I may be
mistaken,<br>
but I don't think I can control metadata on the output. I will
certainly<br>
look into it, though, I already have mechanisms in place for
gathering<br>
metadata and standard fields would be easy to pick up.</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/301209852017-01-22T16:18:20Z2017-01-22T16:18:21ZPDF Metadata<div><p>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. </p></div>metawopstag:support.markedapp.com,2011-09-11:Comment/301209852022-05-11T17:15:06Z2022-05-11T17:15:07ZPDF Metadata<div><p>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.</p>
<p>I'm using these pandoc arguments in Marked 2:<br></p>
<pre>
<code>-f markdown+smart+strikeout+superscript+superscript+pandoc_title_block+rebase_relative_paths -t html5</code>
</pre>
<p>I've also tried adding <code>-s</code>, <code>--standalone</code> and <code>+yaml_metadata_block</code> but this too failed to set the PDF metadata properties of the output document.</p></div>aaaaaatag:support.markedapp.com,2011-09-11:Comment/301209852022-05-30T15:59:54Z2022-05-30T15:59:54ZPDF Metadata<div><p>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.</p></div>Brett