-
Notifications
You must be signed in to change notification settings - Fork 12
PDF export
When running Quarkdown's compiler via quarkdown c
, specifying the --pdf
flag generates a PDF file.
- The content of the PDF matches 1:1 with what the HTML output would render in the Chrome browser.
- All document types and features supported by the HTML target are also supported.
In order to generate PDF files from HTML, the following dependencies are required:
- Node.js
- npm (usually bundled with Node.js)
The PDF generation is handled by Puppeteer. If not installed, Quarkdown will automatically install the latest version via npm on the first run.
-
--node-path <path>
: sets the path to the Node.js executable. Defaults tonode
. -
--npm-path <path>
: sets the path to the npm executable. Defaults tonpm
. -
--pdf-no-sandbox
: disables Chrome sandbox during PDF generation. This is potentially unsafe and should be used only when strictly needed.
An HTML artifact can be exported to PDF via the in-browser print feature (CTRL/CMD + P
).
While paged
(and plain
) documents are print-ready, you'll need a few additional steps to save your slides
document as PDF.
Please refer to Reveal's instructions to learn how to do so.
- Figures
- Image size
- TeX formulas
- Table caption
- Decorative headings
- Alerts (quote types)
- Quotation source
- Page breaks
- Text symbols (text replacement)
- Syntax of a function call
- Declaring functions
- Dynamic typing
- Including other Quarkdown files
- Importing external libraries
- Localization
- Document metadata
- Theme
- Page format
- Page margin content
- Page counter
- Automatic page break
- Numbering
- Table of contents
- Stacks (row, column, grid)
- Container
- Align
- Float
- Clip
- Box
- Collapsible
- Whitespace
- Variables
- Optionality
- Math
- Conditional statements
- Loops
- Let
- Destructuring
- String manipulation
- Table manipulation: sorting, computing, and more
- Generators
- String
- Number
- Markdown content
- Boolean
- None
- Enumeration entry
- Iterable
- Dictionary
- Range
- Lambda
- Size(s)
- Color
- Dynamic
- Paper: abstract, definitions, theorems, and more