wkhtmltopdf

Rotativa 1.6.1 Image “ghosting” but only on QA, not dev or integration server

依然范特西╮ 提交于 2019-12-11 21:21:52
问题 I'm running a c# MVC 4 app , using Rotativa to convert Razor views to Pdfs. Rotativa is basically a wrapper around wkhtmltopdf. I upgraded to Rotativa 1.6.1, to fix a page break issue in wkhtmltopdf,, and my images are "ghosting". I rolled back to 1.5.0 and the problem went away (but page breaks are broken again). Looks just like in this wkhtmltopodf bug http://code.google.com/p/wkhtmltopdf/issues/detail?id=788 They claim it's fixed in the tip. (I tried manually updating to the latest stable

embperl - Using IPC::Open3 to call wkhtmltopdf. STDIN Not working

做~自己de王妃 提交于 2019-12-11 19:06:53
问题 From within embperl, I am trying to call wkhtmltopdf with the IPC::Open3 module. I get output (thanks to ikegami ) from wkhtmltopdf but no input is going to wkhtmltopdf. This is related to this question: perl / embperl — IPC::Open3 Here is the code: [- use warnings; use strict; use IPC::Open3; use POSIX; use Symbol; my $cmd = '/usr/local/bin/wkhtmltopdf - -'; my $pdf = ''; my $string = '<!DOCTYPE html> <html> <head> <title>Hello World</title> </head> <body> Hello World!!! </body> </html>'; my

Path issue with wkhtmltopdf.exe to convert HTML file to PDF

不打扰是莪最后的温柔 提交于 2019-12-11 17:46:17
问题 I am using wkhtmltopdf to convert HTML file into PDF document on a link Button http://code.google.com/p/wkhtmltopdf/ When User Click on a link Button it runs the following code as shown below code in pass file path as an argument ProcessStartInfo. THis code works fine in Following Scenarios only Taking Into consideration that website is hosted on Domain http://www.xyz.net/ When i mention path as http://demo.XYZ.net/ It works fine When i mention path as http://www.XYZ.net/ It doesn't work In

Coldfusion creating reports with wkhtmltopdf

狂风中的少年 提交于 2019-12-11 15:59:13
问题 I am trying to get some assistance with wkhtmltopdf. I have downloaded and installed and trying to get it to work correctly with my program. What I have is a form that lets the user choose print, preview or excel. When the user chooses print I want pop up the html table that is created by a query depending on the associates and locations that are chosen. Right now when the user chooses print it just shows this table in the browser. <cfif FORM.Format IS "print"> <!---<cfdocument format="pdf"

WKHTMLTOPDF (knplabs - snappy) not showing header nor footer page

一笑奈何 提交于 2019-12-11 15:57:30
问题 I'm using wkhtmltopdf to generate my pdf files. I've left the generation alone for some time and for whatever reason it's not generating the header and footer anymore. Things I've tried so far (will update this when more answers come in): Having the doctype , html , head and body tags ion the header and footer Chaning the paths to the header and footer to absolute paths (Even using complete absolute paths from the drive forward C:/xampp... does not work.) It might be worth pointing out that

wkhtmltopdf http error 1301 and 1005

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 14:37:40
问题 I'm trying to run wkhtmltopdf from my c# code but it keeps returning a 1301 or 1005 error. I can't find anything regarding these error codes, any ideas? I'm using the --print-media-type switch so I the pdf will look the same as if it were printed on a physical printer. The pdf does get created, it is just 0 bytes long. here is the command line parameters: wkhtmltopdf.exe http://google.com google.pdf --print-media-type 回答1: After much heartache and frustration, I've discovered that the --print

wkhtmltopdf fails with --footer-center argument

跟風遠走 提交于 2019-12-11 12:16:43
问题 Im trying to insert text into the footer with wkhtmltopdf. wkhtmltopdf ../input.html ../output.pdf --footer-center="My Text" But it just gives me the error Unknown long argument --footer-center=My Text I have tried many ways wkhtmltopdf ../input.html ../output.pdf --footer-center=My Text wkhtmltopdf --footer-center="My Text" ../input.html ../output.pdf wkhtmltopdf ../input.html --footer-center="My Text" ../output.pdf But all results in Unknown long argument --footer-center=My Text Im using

wkhtmltopdf failing to convert local pages to PDF

扶醉桌前 提交于 2019-12-11 10:42:13
问题 I've been trying to get wkhtmltopdf to convert pages on a website and it's failing to convert pages that are on the same. It'll convert and store external pages (tried it with google and bbc.co.uk, both worked) so the permissions are fine but if I try to convert a local page, either a static html file or one generated by a script, it takes around 3 minutes before failing. The output says the page has failed to load, if forcibly ignore this, I end up with a blank PDF. I thought it might be

Smiley emoticon showed as weird character in PDF made with wkhtmltopdf

℡╲_俬逩灬. 提交于 2019-12-11 10:34:26
问题 I'm trying to convert the following HTML to a PDF using wkhtmltopdf , version 0.12.2.1 (with patched qt) : <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Title of the document</title> </head> <body> 😋 </body> </html> The HTML contains the hex character 😋 which shows up fine in the HTML as an emoticon, but in my PDF it looks like this: Why is it displayed like that and how can I fix this? The command I'm using is: wkhtmltopdf /tmp/test.html /tmp/foo.pdf 回答1: For someone

Image header on PDF using wicked_pdf gem and wkhtmltopdf

霸气de小男生 提交于 2019-12-11 07:08:03
问题 My controller: def show respond_to do |format| format.pdf do #render :pdf => "show",:template => "welcome/show",:footer => { :right => 'Page [page] of [topage]' }) #render :pdf => "show",:template => "welcome/show", :header => {:content => render_to_string({:template => 'welcome/pdf_header.html.erb'})}, :footer=> { :right => 'Page [page] of [topage]' },:margin => { :top => 38, :bottom => 35} #render :pdf => "show",:handlers => [:html],:template => "welcome/show.pdf.erb", :header => {:content