• Packages
  • Themes
  • Documentation
  • Blog
  • Discussions
Sign in

gfm-pdf

Convert GFM (GitHub Flavored Markdown) to PDF using wkhtmltopdf
  • #wkhtmltopdf
  • #markdown
  • #pdf
  • #gfm
spren9er
0.3.5 6,072
6
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

gfm-pdf

Export GFM (GitHub Flavored Markdown) documents to PDF using wkhtmltopdf. The package is intended to generate a high-quality and professional GitHub flavored PDF (or HTML page), whose content is copyable and where links are clickable, i.e. where pages are not only images.

Requirements

In order to use gfm-pdf you need to install wkhtmltopdf to your system. For further information look at wkhtmltopdf.org.

Plugin Installation

$ apm install gfm-pdf

Settings

You configure gfm-pdf by editing ~/.atom/config.cson

'gfm-pdf':
  'executablePath': '/usr/local/bin/wkhtmltopdf'
  'styleFontSize': '12px'
  'styleWidth': '520px'
  'type': 'PDF'

You need to provide the path to your wkhtmltopdf binary under executablePath as above. The available types of output are PDF, PDF+HTML or HTML.

Note: For further CSS modifications you can edit your stylesheet ~/.atom/styles.less; the corresponding wrapper class is called gfm-pdf, e.g.

.gfm-pdf h1 {
  color: red;
}

Usage

Open a markdown document and convert it using the gfm-pdf:convert command. The generated document(s) will be saved in the same directory as the input file.

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by