Skip to content

Latest commit

 

History

History
60 lines (38 loc) · 1.53 KB

README.md

File metadata and controls

60 lines (38 loc) · 1.53 KB

Pandoc_Web_Interface

Assumptions

All scripts were created with the following assumptions in mind. Your mileage may vary.

  • Distributor ID: Ubuntu
  • Description: Ubuntu 16.04.1 LTS
  • Release: 16.04
  • Codename: xenial

Setup

This tool has several dependencies,

from within Pandoc-Web-Interface/ run,

bash dependencies.sh

to install them. This only needs to be done once.

Next run,

bash setup.sh

To move necessary files to where they need to be. This needs to be done each time a new version of the Pandoc-Web-Interface is downloaded.

If Pandoc-Web-Interface is being reinstalled, run the following before setup.sh

bash cleanup.sh

Use

Upload individual .md files or a .zip archive of multiple .md files and associated assets to be converted to a number of output formats serverside.

To apply a custom stylesheet include it in the .zip archive and select the "custom" radio button. Selecting radio buttons other than "custom" will override a user-supplied stylesheet.

Converted files are zipped and directly downloaded in browser

Operation

Conversiton to PDF is done using the tool WKHTMLTOPDF:

.md -> Pandoc -> .html (w/ CSS) -> WKHTMLTOPDF -> .pdf

License

This repository is licensed under the MIT License.