PDF Compilation

Ruben Taelman edited this page May 17, 2018 · 2 revisions

Some organizations require you to submit your article as PDF. For this, there are several options.

Manual

With ScholarMarkdown, you can serve your article in a browser, and print your article to PDF using your browser's built-in print-mode. This works best in Google Chrome.

Automatic

If you want automatic compilation to PDF, you can use chrome-headless-render-pdf to create PDFs from webpages via a convenient command-line script.

The following command will create an article.pdf file with A4 paper size assuming you are serving your article locally on port 3000 (default).

chrome-headless-render-pdf --url http://localhost:3000/ --pdf article.pdf --paper-width 8.27 --paper-height 11.69 --no-margins
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.