problem about wkhtmltopdf-Collection of common programming errors


  • John Chertudi
    iis7.5 php5 wkhtmltopdf
    Have an annoying issue with our production web servers. Windows 2008 R2 x64, fully patched, using php 5. Also installed is ABC PDF, php will call the COM object to convert a web page to PDF and present to user.After 2-8 weeks or normal operation, php can no longer convert pages to PDF, and throws error like this Uncaught exception ‘com_exception’ with message ‘Source: ABCpdf Description:Unable to render HTML. Unable to create MSHTML document. COM error 80070008. Not enough storage is available t

  • halfer
    php linux pdf pdf-generation wkhtmltopdf
    I have been trying to convert an html page to PDF with out any luck, I have tried to use wkhtmltopdf (http://code.google.com/p/wkhtmltopdf/) and the PHP class provided by the same developers (http://code.google.com/p/wkhtmltopdf/wiki/IntegrationWithPhp) although the following command executed correctly in terminal:wkhtmltopdf http:/www.googl.com test.pdfI was unable to execute the command in PHP because of the following error: cannot connect to X server.Can any one provide me with a step-by-step

  • Michal
    php osx pdf-generation wkhtmltopdf
    I’m getting the following error while running Snappy, a PHP binding for WKHTMLTOPDF:Fatal error: Uncaught exception ‘RuntimeException’ with message ‘The file ‘/Users/username/test.pdf’ was not created (command: /usr/bin/wkhtmltopdf –lowquality ‘/var/folders/–/–ze9OC9GTSBW3tCl6UCR++++TQ/-Tmp-/knp_snappy4f761d35744a96.74626529.html’ ‘/Users/username/test.pdf’).’ in /Applications/MAMP/htdocs/includes/wkhtmltopdf/Knp/Snappy/AbstractGenerator.php:261 Stack trace: #0 /Applications/MAMP/htdocs/inclu

  • Jamie
    php wkhtmltopdf
    Ok, this has been asked to some degree before but there are no solutions or accepted answers and I’d like to try and be more comprehensive in my question so:I’m trying to WKHTMLTOPDF up and running via PHP on a shared server (in this case it’s MediaTemple (gs)). According to the host there is no reason this won’t work and in fact it is working via SSH. So…I’ve tried a variety of things, the most basic does nothing, just silently fails:exec(“/path/to/binary/wkhtmltopdf http://www.google.com pdf

  • Adam Strudwick
    php wkhtmltopdf
    1) I uploaded”wkhtmltopdf-i386″ to my server in a folder named “/pdf”2) I uploaded the php integration script, in the same folder, and named it “wkhtmltopdf.php” (http://code.google.com/p/wkhtmltopdf/wiki/IntegrationWithPhp)3) I uploaded a file that I named “usage.php”, in the same folder, containing :<?php require_once(‘wkhtmltopdf.php’); $pdf=new WKPDF(); $pdf->set_html(‘Hello world!’); $pdf->render(); $pdf->output(WKPDF::$PDF_EMBEDDED,’sample.pdf’); ?>4) I created a /tmp folder

  • middkidd
    wkhtmltopdf pdfkit
    I’m running into an issue when converting user-provided urls into PDFs of the given page. I’m using PDFKit to do so with the following code:kit = PDFKit.new(url) pdf = kit.to_file(“/tmp/#{SecureRandom.hex}.pdf”)This works for most urls, but occasionally hangs for up to an hour. The urls that cause it to hang seem to do so repeatedly. I’ve tried removing PDFKit from the equation and calling wkhtmltopdf directly, like this:path = “/tmp/#{SecureRandom.hex}.pdf” `wkhtmltopdf –page-size Letter –mar

  • Anusha
    php pdf-generation codeigniter-2 wkhtmltopdf fusioncharts
    I am trying to display fusion 3D pie chart in a PDF export report. For this i aimed to create an image of the chart and save it in server automatically after the chart gets rendered, so that i can call that image in my pdf file. I have set the chart parameters for export like the below code <chart caption=’testchart’ exportEnabled=’1′ exportAtClient=’0′ exportAction=’save’ exportFileName=’testimage’exportHandler=’http://mysite.com/pdf/getChartExported’>In my export handler file i have also

  • Guru
    php linux redhat wkhtmltopdf shell-exec
    I am using Linux Redhat 64bit.My server info is Linux ************* 2.6.18-238.5.1.el5xen #1 SMP Mon Feb 21 06:01:41 EST 2011 x86_64 x86_64 x86_64 GNU/LinuxTo create PDF i am using Wkhtmltopdf. So that First i installed wkhtmltopdf-0.9.9-static-amd64.tar.bz2 when i execute the commands.It shows segmentation fault error.So i reinstalled wkhtmltopdf-0.9.9-static-i386.tar.bz2, it shows wkhtmltopdf: symbol lookup error: wkhtmltopdf: undefined symbol: FcFreeTypeQueryFace error.How can i fix the error

  • Mat
    ruby pdf-generation wkhtmltopdf wicked-pdf
    I’m getting this error while generating pdf using wkhtmltopdfundefined method `pdf_from_string’ for #<WickedPdf:0x7f4b82a369c8>my wicked_pdf.rbWickedPdf.config = {:wkhtmltopdf => ‘/usr/local/bin/wkhtmltopdf’, :layout => “pdf.html”, :margin => { :top=> 40,:bottom => 20,:left=> 30,:right => 30}, :header => {:html => { :template=> ‘layouts/pdf_header.html’}}, :footer => {:html => { :template=> ‘layouts/pdf_footer.html’}} # :exe_path => ‘/usr/bin/wk

  • Chad Johnson
    php wkhtmltopdf
    I am trying to use the PHP bindings (php-wkhtmltox) for wkhtmltopdf. The README said to install libwkhtmltox and then compile php-wkhtmltox, which I’ve done. I’ve also put the compiled .so file into my PHP extension directory, and I’ve adjusted both my Apache and CLI php.ini files to include the extension.Now, after reloading and even restarting Apache and running one of the test scripts included with php-wkhtmltox, I get this:Fatal error: Call to undefined function wkhtmltox_convert() in /path/

  • dbaruah
    ruby-on-rails ruby centos wkhtmltopdf wicked-pdf
    I am using Ubuntu 11.04 to develop an app in Ruby on Rails. In the app I need to generate pdf documents. So I am using the wicked_pdf and wkhtmltopdf-binary gems.In the development environment in my system everything is working fine. But once I deployed the app in production on CentOS 5.6 using Phusion Passenger, when I try to generate pdfs on the fly its giving me the following error:RuntimeError (Location of wkhtmltopdf unknown)I am using Ruby1.9.2.p136Rails 3.1.1Any help will be much appreci

Originally posted 2013-11-26 01:46:33.