JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q46708F
  • License MIT

PDF generator for scripted documents.

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:

  1. Compiles scripted document files (Jade, Markdown, and assets) into a PDF;
  2. Is used as a command-line interface (npm install documark -g, documark compile);
  3. Can watch for files changes (documark compile --watch) to recompile the document.

Note: This is still a work in progress!

Dependencies

  1. For now manually installing wkhtmltopdf is still required.

Configuration

Document configuration can be done in two ways:

  1. In the document's front matter;
  2. 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.