All Projects → cakebake → Markdown Themeable Pdf

cakebake / Markdown Themeable Pdf

ARCHIVED. NOT MAINTAINED. Themeable Markdown Converter (Print to PDF, HTML, JPEG or PNG)

Projects that are alternatives of or similar to Markdown Themeable Pdf

language-mjml
Atom Editor package providing syntax support for MJML
Stars: ✭ 48 (-63.08%)
Mutual labels:  atom, atom-package, atom-editor
HEIF-converter
Converter for High Efficiency Image Format(HEIF)
Stars: ✭ 24 (-81.54%)
Mutual labels:  png, jpeg, convert
atom-carbon-now-sh
Atom package to open the current editor content in https://carbon.now.sh/
Stars: ✭ 15 (-88.46%)
Mutual labels:  atom, atom-package, atom-editor
Atom React Snippets
esnext React snippets
Stars: ✭ 146 (+12.31%)
Mutual labels:  atom, atom-package, atom-editor
Mighty React Snippets
Crafty React & Redux snippets for Atom Editor
Stars: ✭ 16 (-87.69%)
Mutual labels:  atom, atom-package, atom-editor
HEIF
Mac OS X: Convert any image to HEIF/HEIC format
Stars: ✭ 58 (-55.38%)
Mutual labels:  png, jpeg, convert
atom-ide-crystal
Crystal IDE package for Atom using the Scry Language Server
Stars: ✭ 24 (-81.54%)
Mutual labels:  atom, atom-package, atom-editor
atom-zurb-foundation
Zurb Foundation 6 for sites snippets.
Stars: ✭ 31 (-76.15%)
Mutual labels:  atom, atom-package, atom-editor
Prettier Atom
An atom package for the prettier formatter.
Stars: ✭ 750 (+476.92%)
Mutual labels:  atom, atom-package, atom-editor
Libvips
A fast image processing library with low memory needs.
Stars: ✭ 6,094 (+4587.69%)
Mutual labels:  pdf, png, jpeg
Doctron
Docker-powered html convert to pdf(html2pdf), html to image(html2image like jpeg,png),which using chrome(golang) kernel, add watermarks to pdf, convert pdf to images etc.
Stars: ✭ 141 (+8.46%)
Mutual labels:  pdf, png, jpeg
Github
Git and GitHub integration for Atom
Stars: ✭ 880 (+576.92%)
Mutual labels:  atom, atom-package, atom-editor
Pyecharts Snapshot
renders the output of pyecharts as png, jpeg, gif, svg, eps, pdf and raw base64
Stars: ✭ 142 (+9.23%)
Mutual labels:  pdf, png, jpeg
node-pdftocairo
📃 Node.js wrapper for pdftocairo - PDF to PNG/JPEG/TIFF/PDF/PS/EPS/SVG using cairo
Stars: ✭ 17 (-86.92%)
Mutual labels:  png, jpeg, convert
Govips
A lightning fast image processing and resizing library for Go
Stars: ✭ 442 (+240%)
Mutual labels:  pdf, png, jpeg
Mapbox Gl Print Export For Port
Print/Export for Mapbox GL
Stars: ✭ 14 (-89.23%)
Mutual labels:  pdf, png, print
Format parser
file metadata parsing, done cheap
Stars: ✭ 46 (-64.62%)
Mutual labels:  pdf, png, jpeg
Blooddy crypto
ActionScript (AS3) library for processing binary data. This library contains MD5, SHA-1, SHA-2 ( SHA-224 и SHA-256 ), Base64, CRC32 algorithms, JSON encoder & decoder as well as PNG and JPEG encoders.
Stars: ✭ 83 (-36.15%)
Mutual labels:  png, jpeg
Dareblopy
Data Reading Blocks for Python
Stars: ✭ 82 (-36.92%)
Mutual labels:  png, jpeg
Nord Atom Ui
An arctic, north-bluish clean and elegant minimal Atom UI theme.
Stars: ✭ 94 (-27.69%)
Mutual labels:  atom, atom-editor

This project is archived because the owner no longer uses the Atom Editor.

It would be very good to find a new owner for this project, who will take care of updating and expanding the Atom package. A new version based on Chrome Headless has already been prepared in a feature branch.

markdown-themeable-pdf.png

Themeable markdown converter (Print to PDF, HTML, JPEG or PNG)

Version Total Downloads License Dependencies

This Atom package converts / prints / exports your markdown file simple and pretty to PDF, HTML, JPEG or PNG format.

The package was created at the beginning to help in the daily work with manuals for customers. Many people are not familiar with Markdown and they will now receive a well-formatted PDF from their developers. Important here is that the document looks good and professional. This Atom package tries to ask about this task.

Installation

Search in atom under Settings View -> Install -> Packages the package markdown-themeable-pdf and start the installation.

Usage

The PDF can be generated in various ways:

  • Right-click in the editor area when a file is opened and select Markdown to PDF or
  • Right-click on a markdown file in Tree-View and select Markdown to PDF or
  • Press ctrl-shift-E (E = Export) in the editor area when a file is opened

Page breaks

You can start any time a new PDF page with typing Snippet/Shortcode page-break in your markdown editor. So you can prevent such ugly breaks in lists or other contiguous areas.

Custom CSS

The package creates a CSS file ~/.atom/markdown-themeable-pdf/styles.css in your atom configuration directory. You can use this file to customize everything. If you want to change the path, you can change it in the package settings. Alternatively, you can define with project-path/markdown-themeable-pdf/styles.css for each project its own CSS.

Tip: Export your markdown as HTML to inspect it in your favorite browser. After CSS changes you must not restart atom.

Custom header & Custom footer

The pdf document can be decorated with your own header and footer. This can be flexibly adapted to JavaScript files. Each of these files represents a node.js module, which returns an object with two required properties height and contents. After you have made any changes you need to reload or restart atom.

To customize the document header, open ~/.atom/markdown-themeable-pdf/header.js (you can change this path in the package settings) and change it to your needs:

// EXAMPLE
module.exports = function () {
    return {
        height: '2cm',
        contents: '<div style="text-align: right;"><span>Created by</span> <img src="logo.png" alt="Logo" /> <span style="color: #EC4634; font-size: 120%; text-transform: uppercase;">markdown-themeable-pdf</span></div>'
    };
};

To customize the document footer, open ~/.atom/markdown-themeable-pdf/footer.js (you can change this path in the package settings) and change it to your needs:

// EXAMPLE
module.exports = function () {
    var dateFormat = function () {
        return (new Date()).toLocaleDateString('en-US', {
            weekday: 'long',
            year: 'numeric',
            month: 'short',
            day: 'numeric',
            hour: '2-digit',
            minute: '2-digit'
        });
    };
    return {
        height: '1cm',
        contents: '<div style="float:left;">Page {{page}}/{{pages}}</div><div style="float:right;">&copy; Copyright ' + dateFormat() + ' by COMPANYNAME</div>'
    };
};

Tip: Alternatively, you can define with project-path/markdown-themeable-pdf/header.js or project-path/markdown-themeable-pdf/footer.js for each project its own header and footer.

Example / Demo

See Demo.pdf - the PDF version of Demo.md.

DEMO

Todo

  • Fix: Open Markdown Preview with ctrl-shift-M, right-click in markdown-preview area and select Save As PDF
  • Better handling of long code lines
  • Font Awesome integration
  • Emojis
  • Inline Links (Anchors)

Known Issues

  • Table header glitches when a table starts directly on a new page

    When that happens, you can put in your markdown in front of the table an html code <div class="page-break" /> to prevent this.

Credits

Special thanks to ...

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].