Skip to content

Instantly share code, notes, and snippets.

@xemoe
Last active October 16, 2015 08:33
Show Gist options
  • Save xemoe/9b602057afff752043bd to your computer and use it in GitHub Desktop.
Save xemoe/9b602057afff752043bd to your computer and use it in GitHub Desktop.

How to generate PDF reports file from html views

  1. generate filename with .html extension
  2. geneate pdf output filename with .pdf extension
  3. set pdf tmp path variables
    E.g. /tmp/my_reports.pdf
  1. set command template
    /usr/bin/xvfb-run --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf %s %s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment