2pdf to generate a pdf file.
pdf file can be printed
2pdf use:
- rst2pdf https://code.google.com/p/rst2pdf/
- pil http://www.pythonware.com/products/pil/
- pygments http://pygments.org/
- reportlab http://www.reportlab.com/software/opensource/rl-toolkit/
- docutils http://docutils.sourceforge.net/
- Clone or [download] git repo into your packages folder (in ST2, find Browse Packages... menu item to open this folder)
- Restart ST2 editor (if required)
Or with Package Control:
- Run "Package Control: Add repository" and add https://github.com/fraoustin/Sublime2pdf
- Run "Package Control: Install Package" command, find and install
2pdf
plugin. - Restart ST2 editor (if required)
click menu Selection -> ToPdf
add the following line to keymap settings
{ "keys": ["ctrl+p"], "command": "to_pdf" }
stylesheet-code is stylesheet use by rst2pdf for all syntax except for the restructured syntax
stylesheet-rst is stylesheet use by rst2pdf for the restructured syntax
{
"stylesheet-code": "print.style",
"stylesheet-rst": "",
"breaklevel": 0,
"compressed": false
}
view license of
rst2.pdf