FAQ Database Discussion Community


Wkhtmltopdf in a Dokku app?

docker,wkhtmltopdf,dokku
I have a NodeJS/Express Dokku container. I'm trying to use a node module which just runs the wkhtmltopdf command from shell, but it can't find wkhtmltopdf. Anyone have any experience with this?...

How to turn fully rendered html page using Django into PDF

python,django,pdf,wkhtmltopdf
I have created an app that uses a Google maps api to geocode an address and add markers to a map. It also has some interaction with Postgis in my views. Everything works well there. What I have having trouble with is how to create a PDF from the fully...

Process.Start in Azure Website

asp.net,asp.net-mvc,azure,wkhtmltopdf,azure-web-sites
I have an ASP.NET MVC 5 app where I need to invoke wkhtml2pdf.exe in my Azure website using Process.Start. Locally everthing works fine. But it seems my app stuck at Process.Start line. Is starting a process is supported on Azure?

Prevent OSX Download Notification When Testing PDF Download

ruby-on-rails,rspec,wkhtmltopdf,wicked-pdf
We're using wicked_pdf to render a PDF in our Rails app. I'm trying to write tests for it. controller: def index format.pdf render pdf: "index.pdf", template: "foos/index" end controller spec: it "should render a pdf" do get :index, format: :pdf end feature spec: scenario "User clicks PDF link" do click_link...

footers html content is not getting printed in wicked_pdf + rails

ruby-on-rails,ruby-on-rails-4,pdf-generation,wkhtmltopdf,wicked-pdf
I am using wicked_pdf to generate pdf for my rails application. I am trying to render a dynamic html content at the footer of my generated pdf. I have implemented following code in controller: #app/controllers/receipts_controller.rb def generate_receipt html = render_to_string(:action => 'print_receipt', :layout => false) pdf = WickedPdf.new.pdf_from_string(html, :encoding =>...

Not able to run wkhtmltopdf commad through shell_exec() function in php but same command works on command line

php,wkhtmltopdf,shell-exec
I'm in trouble and that much confused about a php shell_exec command. When the command is execute by PHP I have no error but the execution fails. If I use exactly the same command from a terminal it works. Here's the command : /usr/bin/wkhtmltopdf --lowquality --dpi 300 --encoding utf-8 "/tmp/knplabs_snappyxa9otq.html"...

wkhtmltopdf Engine Yard

ruby-on-rails,linux,wkhtmltopdf,engineyard
I'm getting the following error: wkhtmltopdf_linux_x64: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory How do I install the missing library on engineyard server?...

Where can I download previous versions of wkhtmltopdf from?

wkhtmltopdf
Wkhtmltopdf downloads page allows me to download the current stable version of wkhtmltopdf. I am having a issue for which I suspect current version might be an issue. Where can I download the older versions of wkhtmltopdf from (more specifically for Windows 32-bit) ?

wkhtmltopdf not handling multiple request at a time (through threads)

multithreading,wkhtmltopdf
I am trying to generate multiple pdf at same time through threads, below is wkhtmltopdf command xvfb-run --server-args="-screen 0, 1024x680x24" wkhtmltopdf --use-xserver this work perfectly for one request at a time, but it fails when there are multiple request at the same time (multiple threads). Is there any issue or...

Unable to set options with PHP WkHtmlToPdf

php,wkhtmltopdf
I try to use WkHtmlToPdf with Php using Michael Härtl wrapper called PHP WkHtmlToPdf but i can't declare any options. This code works fine use mikehaertl\wkhtmlto\Pdf; $pdf = new Pdf('http://www.example.com'); $pdf->binary ='/usr/local/bin/wkhtmltopdf'; if (!$pdf->send('pres.pdf')) { throw new Exception('Could not create PDF: '.$pdf->getError()); } Now if I try to set options...

Odoo8 Qweb generated pdf document. The tablerows on the 2nd page are jammed

pdf,report,wkhtmltopdf,odoo,qweb
On the 2nd 3rd etc. page the tableheader and tablerows of quotation or invoice are jammed, when I print the document in pdf format. This works the same (wrong) way in my own written templates too. Brand new installed LinuxMint17 (Ubuntu clone), latest odoo8 (2015-01-29), wkhtmltox0.12.2.1 Is this a bug...

Efficient way of exporting a bunch of PDF's from a user?

php,pdf,cron,wkhtmltopdf
I need to give our users the ability to export a bunch of their PDF's (invoices).The problem is, the PDF's are generated everytime a user opens them. So I don't have them already stored in a filesystem. So, my question is, what would be an efficient way of exporting a...

Generate PDF from HTML without buttons

html,css,asp.net,wkhtmltopdf
I use to generate pdf from my web page wkhtmltopdf. My project is on ASP.Net and on Bootstrap. So buttons on page has common classes btn btn-primary. As i know if i set to some element .Visible = false; this element will be invisible on pdf. As there are many...

wkhtmltopdf on a Mac - how does it get executed?

osx,wkhtmltopdf
I'm trying to get wktmtlmtopdf running on a MacBook Pro with OSX Yosemite. I ran the package installer for wkhtmltopdf 0.12.2.1 and it placed it in user/local/bin But, when I run the following, I get a different version. $ wkhtmltopdf -V Name: wkhtmltopdf 0.9.9 $ which wkhtmltopdf /Users/davidburton/.rvm/gems/ruby-1.9.3-p484/bin/wkhtmltopdf Why isn't...

NReco.PdfGenerator The pipe has been ended error on the server

asp.net-mvc-4,iis,pdf-generation,wkhtmltopdf
I'm using NReco.PdfGenerator for my PDF documents(that component is based on WkHtmlToPdf tool), my code allow me to create a pdf calling a function with the parameters controller, action, model: public static byte[] GeneratePdfDocument(System.Web.Mvc.Controller controller, string viewName, object model) { string result; controller.ViewData.Model = model; using (StringWriter sw = new...

Heroku and wicked-pdf — libwkhtmltox.so.0 No such file

ruby-on-rails,heroku,wkhtmltopdf,wicked-pdf
I have installed wicked_pdf locally to my Rails app and it is generating pdfs. When I push it to Heroku and try to generate a pdf, I get: Command Error: /app/bin/wkhtmltopdf: error while loading shared libraries: libwkhtmltox.so.0: cannot open shared object file: no such file or directory I am running...

Using wkhtmltopdf with Bootstrap 3 removes color styles

css,colors,twitter-bootstrap-3,wkhtmltopdf
I'm trying to create pdf reports from Meteor, using the SSR package and wkhtmltopdf. Things are going well, except for one thing: when I link bootstrap 3, I lose all colors. The column format, table format, etc is all fine, but everything is white on black. Even if I use...

wkhtmltopdf creating empty pdf

asp.net,pdf,wkhtmltopdf,pdf-conversion
I am using wkhtmltopdfto convert HTML page to PDF in ASP.NET. The following is my coding protected void Button_Click(object sender, EventArgs e) { Process p = new Process(); p.StartInfo = new ProcessStartInfo(); p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.FileName = Server.MapPath("~/wkhtmltopdf/wkhtmltopdf.exe"); string arguments = "\"" + "http://localhost:51528/settings/InvoiceStatementPrint.aspx?InvoiceID=48\"" + " "...

Azure websites and wkhtmltopdf

asp.net-mvc,azure,wkhtmltopdf,azure-web-sites,rotativa
So after beginning my azure websites-adventure, I have been encountering disappointment after disappointment to the point of 'almost' regretting taking the azure route..the latest: my app uses wkhtmltopdf(Rotativa) for all its PDF generation. And as I discovered now during my staging testing...that doesnt work. According to most info on the...

WkHTMLtoPDF 0.12.2.1 PHP exec xvfb-run: Error: xauth command not found

php,centos,wkhtmltopdf,xauth
I want to generate a PDF from a URL, so I execute the command by WkHTMLtoPDF as below: /usr/bin/xvfb-run --server-args="-screen 0, 1920x1080x24" /usr/local/bin/wkhtmltopdf http://www.google.com /tmp/google.pdf 2>&1 The above command works fine on Terminal, But when I invoke the command inside PHP failed! And show me an error message as below:...

wkhtmltopdf on openSuSE: cannot connect to X server

php,symfony2,pdf-generation,twig,wkhtmltopdf
I need wkhtmltopdf on openSuSE. I have installed it via the repository. The version is 0.12.1. To render HTML with Symfony, I use the KnpSnappyBundle. By rendering a twig template, I got the following error message: The exit status code '1' says something went wrong: stderr: "wkhtmltopdf: cannot connect to...

Bad caracters when generating pdf file with Knp Snappy

php,symfony2,pdf,pdf-generation,wkhtmltopdf
I am using Symfony2. When the pdf file is generated using this code : public function printAction($id) { // initialiser $demande $html = $this->renderView('PFETimeBundle:Demande:print.html.twig', array('demande'=> $demande) ); return new Response( $this->get('knp_snappy.pdf')->getOutputFromHtml($html), 200, array( 'Content-Type' => 'application/pdf', 'Content-Disposition' => 'attachment; filename="file.pdf"' ) ); } I get this content ( french caracters...

Wkhtmltopdf fails to resolve host when executed from php

php,windows,symfony2,wkhtmltopdf
I'm generating pdf from php using wkhtmltopdf, but I have peculiar problem. When the template doesn't use any external sources everything is fine. But when it imports anything over http/file protocol I get: The exit status code '1' says something went wrong: stderr: "" stdout: "Loading pages (1/6) [> ]...

WKHTMLTOPDF - Allow page break in table row

wkhtmltopdf
I'm running wkhtmltopdf 0.12.2.1 (with patched qt) on my Ubuntu server and I can generate PDFs just fine. I've been using wkhtmltopdf to generate a table with several columns and sometimes one of those columns has a LOT of text. My problem is this: I want my table rows to...

Blank PDF returned while making a POST Request but works fine with GET

angularjs,node.js,express,wkhtmltopdf,angularjs-http
I have a AngularJs frontend and a NodeJS backend. I am trying to build a PDF on NodeJS based on some parameters from AngularJS and return the PDF in response. The code I am using seems to work fine when I make a GET request from AngularJS, but it returns...