Pdf IOError

33 views
Skip to first unread message

talluri chandu

unread,
Aug 12, 2014, 2:03:38 AM8/12/14
to erpnext-dev...@googlegroups.com
Traceback (innermost last):
  File "/home/chandu/eipl/frappe-bench/apps/frappe/frappe/app.py", line 54, in application
    response = frappe.api.handle()
  File "/home/chandu/eipl/frappe-bench/apps/frappe/frappe/api.py", line 42, in handle
    return frappe.handler.handle()
  File "/home/chandu/eipl/frappe-bench/apps/frappe/frappe/handler.py", line 66, in handle
    execute_cmd(cmd)
  File "/home/chandu/eipl/frappe-bench/apps/frappe/frappe/handler.py", line 89, in execute_cmd
    ret = frappe.call(method, **frappe.form_dict)
  File "/home/chandu/eipl/frappe-bench/apps/frappe/frappe/__init__.py", line 527, in call
    return fn(*args, **newargs)
  File "/home/chandu/eipl/frappe-bench/apps/frappe/frappe/templates/pages/print.py", line 93, in download_pdf
    frappe.local.response.filecontent = get_pdf(html)
  File "/home/chandu/eipl/frappe-bench/apps/frappe/frappe/utils/pdf.py", line 28, in get_pdf
    pdfkit.from_string(html, fname, options=options or {})
  File "/home/chandu/eipl/frappe-bench/env/local/lib/python2.7/site-packages/pdfkit/api.py", line 68, in from_string
    return r.to_pdf(output_path)
  File "/home/chandu/eipl/frappe-bench/env/local/lib/python2.7/site-packages/pdfkit/pdfkit.py", line 131, in to_pdf
    ' '.join(args))
 IOError: Command failed: /usr/bin/wkhtmltopdf --margin-top 15mm --margin-right 15mm --page-size A4 --encoding UTF-8 --background --print-media-type --images --margin-left 15mm --no-outline --margin-bottom 15mm - /tmp/0a286deb48a0c1fb745f1877e940f5d704e2f055c17495da9c2c6eae.pdf
Check whhtmltopdf output without 'quiet' option
Reply all
Reply to author
Forward
0 new messages