Questions tagged [wkhtmltopdf]

A shell utility to convert HTML to PDF using the Webkit rendering engine and Qt.

Tool for converting web pages to PDF documents using the WebKit engine. These run entirely "headless" and do not require a display or display service.

Document objects:

wkhtmltopdf is able to put several objects into the output file, an object is either a single webpage, a cover webpage or a table of content. The objects are put into the output document in the order they are specified on the command line, options can be specified on a per object basis or in the global options area. Options from the Global Options section can only be placed in the global options area

A page objects puts the content of a singe webpage into the output document.

(page)? <input url/file name> [PAGE OPTION]...

Options for the page object can be placed in the global options and the page options areas. The applicable options can be found in the Page Options and Headers And Footer Options sections.

A cover objects puts the content of a singe webpage into the output document, the page does not appear in the table of content, and does not have headers and footers.

cover <input url/file name> [PAGE OPTION]...

All options that can be specified for a page object can also be specified for a cover.

Resources:

2447 questions
1
vote
1 answer

wkhtmltopdf is returning blank pages for some urls

I have installed the wonderful software wkhtmltopdf on our production Debian server to be used for creating PDFs from URLs. We stream (i hope that's the right term) the resulting PDF to the client, we have no interest in storing them server side. We…
Anton Gildebrand
  • 3,641
  • 12
  • 50
  • 86
1
vote
2 answers

How use wkhtmltopdf on shared server

I'm using installation of wkhtmltopdf (I even copied instalation from other directory) on my localhost (windows xp) simply by callling exec function. Everything works good. How can I use it on linux share web server? Admin claimed, that it is…
tomasr
  • 485
  • 1
  • 8
  • 24
1
vote
0 answers

CSS3 Support in wkhtmltopdf/rotativa

I need to create pdf by rotativa. And I need to show textarea into number of blank lines same as "rows" attribute, if the textarea doesn't have any content and need to show the content as well if there is any. and need to make the rest lines as…
sovan
  • 479
  • 6
  • 21
1
vote
1 answer

Repeat HTML in every page generated with Wicked PDF and Rails

I'm generating PDF with the Wicked PDF gem on Ruby on Rails, but have to repeat some HTML content on every page. What I'm trying is to use just part of the page to my main content, and use HTML to add stuff around it, in every page. Something like…
joaopribs
  • 648
  • 1
  • 7
  • 13
1
vote
1 answer

ICC Color Profiles in SVG for webkit wkhtmltopdf or defining spot colours

Does webkit/wkhtmltopdf not support icc-color profiles in fill colours in SVG images? I have an image that has the colour defined as: #e22e27 icc-color(U.S.-Web-Coated--SWOP--v2, 0.0558938, 0.95947204, 0.98716716, 0.00204471) Which is supposed to…
TheStoneFox
  • 3,007
  • 3
  • 31
  • 47
1
vote
1 answer

wkhtmltopdf and multiple pages

i am trying to convert html pages like this one click here into a pdf. when i use wkhtmltopdf i ve get this result click here the options i ve used are: xvfb-run --server-args="-screen 0, 1024x768x24" wkhtmltopdf --use-xserver -B 0 -L 0 -R 0 -T 0…
nowkin
  • 25
  • 9
1
vote
0 answers

Django and wkhtmltopdf working fine from Python shell but not from URL

call([WKHTMLTOPDF_COMMAND_PATH, html_file_url, pdf_file_path]) The above command generates pdf in the specified location when run from python shell. But when from URL, gets stuck as show below Loading pages (1/6) 10%
kirans_6891
  • 121
  • 9
1
vote
2 answers

Cannot get wkhtmltopdf to work in rails

I am trying to use wicked_pdf in my rails 3 application. I have followed all the tutorials and I am getting this error: Failed to execute: "/usr/local/bin/wkhtmltopdf" -q …
Finnjon
  • 651
  • 4
  • 19
1
vote
0 answers

wkhtml2pdf Bold text while conversion

I am using wkhtml2pdf for converting html file to pdf. But there is a problem when i add an image to the page all the text in that page appears in distorted bold font. If i remove the image then the text is fine. This problem appears only while…
1
vote
0 answers

ATSFontGetFileReference error when running wkhtmltopdf (qt) as nobody

I'm using wkhtmltopdf, which is based on Qt, to generate PDF versions of a local web page. So far it does exactly what I need it to when I run it directly from the command line. For example, this works: wkhtmltopdf…
acobster
  • 1,637
  • 4
  • 17
  • 32
1
vote
1 answer

How to get wkhtmltopdf logging info in C#?

I'm using wkhtmltopdf to convert some html to pdf. I think I'm getting some javascrpot errors and I'd like to get access to some debug\logging from wkhtmltopdf. Does anyone know how to get the logging info? var wkhtmlDir =…
NullReference
  • 4,404
  • 12
  • 53
  • 90
1
vote
2 answers

Highcharts charts on a page not rendering correctly when output to PDF using wkhtmltopdf

My wkhtmltopdf PDF output of a page with several Highcharts charts on it is missing some elements of the charts, primarily all of the simple straight lines, including tick marks, grid lines, column borders, legend borders and the lines in my…
Yardboy
  • 2,777
  • 1
  • 23
  • 29
1
vote
1 answer

wkhtmltopdf using STDIN and STDOUT in Perl with Email::Mime

I am trying to generate a PDF for an order receipt on-the-fly from HTML that is also generated on-the-fly, then email it to someone. I really don't want to create a file, attach it to an email, then delete the file, so I'm trying to send the html to…
waldo22
  • 35
  • 9
1
vote
2 answers

PDF export from Java web application, with client-side visualizations

I've been converting HTML + CSS to PDF in server-side Java, e.g., Flying Saucer (http://code.google.com/p/flying-saucer/) Now I need to look at alternative approaches with the growth in client-side visualization APIs like RaphaelJS, that should…
wrschneider
  • 17,913
  • 16
  • 96
  • 176
1
vote
1 answer

PHP ZipArchive::AddFile from different directory issue

I'm using PHP's ZipArchive Class to add generated PDF files to a zip archive. The generated PDFs are stored in C:\pdfgenerator (not my www directory), while the zip file itself is created and stored in C:\Program Files\Apache Software…
stoopkid1
  • 114
  • 1
  • 1
  • 9