This simple extension generates a PDF file from a .in file template on save. There are several places in a PDF file where bytes-offsets are required. We use the PDFium fixup_template_pdf.py
script to replace {{name}}-style variables in the input with calculated results.
- Generate PDF on save (for .in files).
- Generate PDF from command palette.
You need to have Python 2.7+ on your device. The default Python path used is python
. You can change it in the settings.
This extension contributes the following settings:
pdfGenerator.resource.pythonPath
: the Python path used to run the Python script.
Initial release.
Updated the python script to work on Python <3.0.0. Tested from Python v2.7.13 to v3.6.1.
Want to contribute to PDF Generator and make it better? ⭐️ Here's the repo: https://github.com/bbeaudry/pdf-generator.