Package Exports
- documark
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (documark) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Documark
PDF generator for scripted documents.
A library that:
- Compiles scripted document files (Jade, Markdown, and assets) into a PDF;
- Is used as a command-line interface (
npm install documark -g,documark compile); - Can watch for files changes (
documark compile --watch) to recompile the document.
Note: This is still a work in progress!
Dependencies
- For now manually installing wkhtmltopdf is still required.
Configuration
Document configuration can be done in two ways:
- In the document's front matter;
- In a seperate
config.json.
If there is front matter in the document, the configuration file will be ignored.
wkhtmltopdf
Configure wkhtmltopdf with the pdf object in the documents front matter. For example:
---
title: Document
pdf:
user-style-sheet: path/to/main.css
---See this page for a full list of configuration options.