wkhtmltopdf

How to install wkhtmltopdf on a linux based web server

I have tried in all ways to get wkhtmltopdf installed on our web server but unfortunately it is not getting installed. I cannot access user/bin folder as stated in a tutorial on installation. On the server in public_html folder there is a sub folder _vti_bin, I copied the file wkhtmltopdf-i386 from wkhtmltopdf-0.9.1-static-i386, but I a...

Jekyll documentation to PDF with TOC

I would like to write documentation using Jekyll with HTML and PDF outputs. Html can have a navigation but the PDF should have table of contents. Is there a free and easy way to do that? The HTML part is easy but I would like to use @media print CSS for making the PDF file. I have a few ideas how to do this. Use PrinceXML, unfortuna...

How to use wkhtmltopdf.exe in ASP.net

After 10 hours and trying 4 other HTML to PDF tools I'm about ready to explode. wkhtmltopdf sounds like an excellent solution...the problem is that I can't execute a process with enough permissions from asp.net so... Process.Start("wkhtmltopdf.exe","http://www.google.com google.pdf"); starts but doesn't do anything. Is there an easy...

Issue running 32-bit executable on 64-bit Windows

I'll add 500 of my own rep as a bounty when SO lets me. I'm using wkhtmltopdf to convert HTML web pages to PDFs. This works perfectly on my 32-bit dev server [unfortunately, I can't ship my machine :-p ]. However, when I deploy to the web application's 64-bit server the following errors are displayed: (running from cmd.exe) C:\>...

I can't get rails plugin wicked_pdf to work

Hi, I wanted to create PDFs for my rails application using wkhtml2pdf and wicked_pdf. I downloaded and extracted wkhtml2pdf beta 4 and placed it in /usr/local/bin/wkhtml2pdf I tried running it on a web site and it gave a nice result. In my rails application (2.3.4) I installed wicked_pdf: script/plugin install git://github.com/mil...

Permission denied using wicked_pdf from ruby on Windows 7

ruby -v = 1.9.1p378; rails -v = 2.3.8 wkhtmltopdf works just fine from the command line - generates a PDF. The path to the .exe is in the %PATH% variable as well as specified properly in the /config/initializers/wicked_pdf.rb file. Set up the controller action to handler .pdf format but I get the following error Permission denied - c...

additional settings for wkhtmltopdf?

I am converting some docs to pdf using wkhtmltopdf (currently using perl and the command line versions). Is it possible to change the "PDF Producer", "PDF Version" and "Fast Web View" fields? The current defaults are "wkhtmltopdf", "1.4 (Acrobat 5.x)", and "No", respectively. I didn't see anything in the wiki page ...

Reusing the same SVG in a PDF with wkhtmltopdf

I have the following HTML for conversion to PDF using wkhtmltopdf: <html> <head> </head> <body> <object data="first.svg" width="100" height="100" type="image/svg+xml"></object> <object data="second.svg" width="100" height="100" type="image/svg+xml"></object> <object data="third.svg" width="100" height="100" type="image/svg+xml"></objec...

How to turn off safe_mode in php on Debian?

Hello, I know, it may sound ridiculous, but I can't turn off safe_mode. I'm using wkhtmltopdf (which is best html->pdf converter I've used, and yes, I tried html2ps, fpdf and lots of others). And it needs to be executed with exec() function. I've done find / | grep php.ini, found all of php.ini's and changed safe_mode to Off. Then ...

Corrupt Binary Executable?

:/usr/local/bin# file wkhtmltopdf wkhtmltopdf: Mach-O executable i386 This file will not run. I have tried removing and reinstalling with no success. I have looked at the permissions (below) and they seem ok too: -rwxr-xr-x 1 root root 13817060 Aug 9 13:07 wkhtmltopdf When I run wkhtmltopdf I get the error below: wkhtmltopdf...

Rails 3 - wkhtmltopdf command failed when using PDFKit to create PDF documents

Hello, I have setup PDFKit in my Rails 3 application, using RVM (had to manually copy the wkhtmltopdf binary). When I try to render the PDF version of a page, I get this error: RuntimeError in AgenciesController#show command failed: ["lib/wkhtmltopdf/wkhtmltopdf", "--disable-smart-shrinking", "--page-size", "Letter", "--margin-top", ...

wkhtmltopdf codeigniter

wkhtmltopdf sounds like an excellent solution...the problem is nothing happens on the exec shell_exec("c:\wkhtmltopdf.exe","http://www.google.com google.pdf"); Am i doing anything wrong? ...

Help installing static binary for wkhtmltopdf

I am trying to use the static binary of wkhtmltopdf on Ubuntu server 10.0.4. The reason for is that it apparently has a built in modified QT that will allow me to run wkhtmltopdf without an X Server. Result: Once installed (see steps below), when I execute wkhtmltopdf in the terminal, it does not fire up... just returns me to the promp...

How do I get wkhtmltopdf running for a Drupal site on cPanel shared hosting?

First off, I will acknowledge that I am aware of another similar thread on the topic of wkhtmltopdf, but it was not similar enough to resolve my issue. Here's the other thread: wkhtmltopdf Second, I will say that I have successfully used wkhtmltopdf with a Drupal site on a dedicated server that I run, where I installed the libX11 and us...

PHP library not being included, "Call to undefined function"

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 ...

wkhtmltopdf - convert html code to pdf directly in C#

Hi! I know this tool looks up on a url and converts the repsponse to pdf. How do I convert a <html> content.. </html> into a pdf? I was looking at the help files on wkhtml2pdf and looks like it provides an option of stdin but I can't really figure out how to emulate stdin. Also if you know a tool which does a better job, please s...

url parameters in Command Line

i am trying to make a pdf file with wkhtmltopdf when i pass url www.example.com pdf is generating or www.example.com?id=1 but when i try to put another parameter command execution is not working www.example.com?id=1&type=u shell_exec("c:\pdf\wkhtmltopdf.exe http://localhost/test/index.php?id=1&amp;typee=abc test.pdf "); i t...

Rendering fullcalendar in wkthmltopdf generated document in ruby on rails app

Calendar in our app is displayed using Fullcalendar plugin by arshaw Here it is: http://avatara.su/calendar There is a need to export this page to pdf. I always used PDFkit gem to do this, but with fullcalendar it doesn't work. It just renders an empty calendar grid, without rendered events. I tried to set 10 seconds for wkhtmltopdf t...