wkhtmltopdf

Session issue in wkhtmltopdf

心已入冬 提交于 2019-12-06 11:58:17
Hi, I am converting HTML to pdf through wkhtmltopdf library, here session is behaving very differently that if we set the session when our link is called then it works fine but our previously set session is not getting? exec('C://"Program Files"//wkhtmltopdf.exe ' . 'http://localhost/test.php?a=351' . ' ' . $file_name . ''); Problem: Session set in test.php is available in this page when printing the page. But if we set the session in some previous page i.e test2.php then that value is null here in test.php Is any idea? Because it's how sessions works, wkhtmltopdf.exe creates another session,

How to Install wkhtmltopdf?

廉价感情. 提交于 2019-12-06 09:54:19
Now i am working on rails 3.0.0.i am using Ubuntu 11.10 ,64 bit os.i want to install wkhtmltopdf.please tell me the static version of wkhtmltopdf. Sunny Installing wkhtmltopdf on Ubuntu Linux machine First check os is 32 bit or 64 bit by using following command Try uname -m . It seems like the uname -m actually gives x86_64 when it is an kernel 64 bits Run following command sudo apt-get install openssl build-essential xorg libssl-dev libxrender-dev Then run following command sudo apt-get install wkhtmltopdf Based on OS download wkhtmltopdf package from following site http://code.google.com/p

Custom fonts not working in Generated PDF using WKHTMLTOPDF Library

可紊 提交于 2019-12-06 08:55:48
问题 I am using Laravel 5.1 SnappyPDF wrapper, which is using WKHTMLTOPDF library. I am trying to include some custom google fonts for my PDF file, but those fonts are not working in generated PDF file. I tried, converting fonts into Base64 and also tried to include fonts by absolute URL and relative URL, also tried many answers available at stack overflow but none of them worked for me. How to fix this issue. //Calling fonts @font-face { font-family: Roboto Condensed; src: url("/fonts

Rotativa and wkhtmltopdf no CSS or images on iis6 over HTTPS, but fine on HTTP

南楼画角 提交于 2019-12-06 08:50:23
Using Rotativa, a .net wrapper for wkhtmltopdf. I can not get CSS or Images to render in a PDF if I connect Via HTTPS. I have previously set this up on 2008r2 iis7 server with HTTPS(SSL) I did have simular trouble with css & webfonts, but I just changed all the paths to absolute paths and it worked. This job is deployed on ii6 windows 2003 server. Yesterday it was just producing "An unhandled exception has occurred." when ussing HTTPS so I upgraded wkhtmltopdf to V 0.12.0, now the PDF will generate using ViewAsPdf, with no CSS or images. And using ActionAsPdf it renders a PDF of "You are not

How to use Wkhtmltopdf converter with filled text boxes?

柔情痞子 提交于 2019-12-06 08:14:44
I need to convert several aspx pages to PDF when a button is clicked. This happens after many text boxes are filled and other controls are selected, etc. Wkhtmltopdf renders the pdf very nicely but everything is blank. Basically, when the PDF is created it is in the state that the form was in on load. I want the PDF to be in the state that the form is in when the button is pressed. I need ideas for a way to work around this issue in order to save the pdf with the text boxes filled. wkhtmltopdf renders an HTML page it "sees", not how the browser displays it. When you fill out the form, the

Django wkhtmltopdf don't reading static files

限于喜欢 提交于 2019-12-06 07:42:38
I use wkhtmltopdf with django-wkhtmltopdf and I think I have incorrectly serving static files. If I run wkhtmltopdf from the console are properly collected static files and generates a good pdf file: wkhtmltopdf http://127.0.0.1:8000/dash/test/ test.pdf "GET /static/base/js/jquery.js HTTP/1.1" 200 93106 "GET /static/base/css/bootstrap.css HTTP/1.1" 200 119892 "GET /static/base/js/bootstrap.min.js HTTP/1.1" 200 27726 "GET /static/dash/css/flot.css HTTP/1.1" 200 1810 "GET /static/dash/js/jquery.flot.categories.js HTTP/1.1" 200 6033 "GET /static/dash/js/jquery.flot.js HTTP/1.1" 200 119052 However

highcharts display in my render html page which i want to convert into PDF using wkhtmltopdf in rails

[亡魂溺海] 提交于 2019-12-06 07:37:36
I have an html page with some text data and graph. I am using wkhtmltopdf gem to generate pdf from html page. Using highcharts, i am generating graph. I am able to generate PDF successfully but PDF only contains text data and doesn't have graph in it. I already tried with some options as below - plotOptions: { series: { enableMouseTracking: false, shadow: false, animation: false } }, in Hightcharts jquery coding.. Please assist me to resolve this issue. I am not familiar w/wkhtmltopdf but I do use wkhtmltoimage to create images of pages that contain graphs from highcharts. One thing I noticed

wkhtmltopdf - background color doesn't fill second page

倾然丶 夕夏残阳落幕 提交于 2019-12-06 04:08:59
I am trying to convert an HTML to a PDF document with wkhtmltopdf. Command I am running is wkhtmltopdf ./test.html test.pdf Software version: wkhtmltopdf -V wkhtmltopdf 0.12.5 (with patched qt) The content is dynamic therefore I don't really know where it will end. Unfortunately when the content renders to the second page the background stops with the content. HTML below, any help would be fully appreciated and make an old developer happy after struggling so much :) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http:/

Wkhtmltopdf not displaying TrueType fonts

喜夏-厌秋 提交于 2019-12-06 01:46:45
We're using wkhtmltopdf to render a PDF from an HTML page however fonts such as Verdana and Georgia aren't being displayed properly. We installed the TrueType fonts on our server using these instructions. Fonts are being set inline using style tags: style="font-family: verdana, geneva;" Any suggestions on what we can try next to get these fonts to display would be appreciated. Yardboy Try Arman H.'s solution posted over on this question: Google Web Fonts and PDF generation from HTML with wkhtmltopdf Base64 encoding the fonts into your css has worked like a charm for us. have you set up the

pdfkit not rendering correctly in rails 3.1

自作多情 提交于 2019-12-05 19:48:47
I have followed the following railscast about adding pdfkit to an application, and I am having some issues with the generation of pdfs. Here are the following things that I have done: I downloaded wkhtmltopdf via the homebrew package manager brew install wkhtmltopdf Then I added the pdfkit gem to my gemfile and ran the bundle install command. I added the following to my config/application.rb file require 'pdfkit' ... config.middleware.use PDFKit::Middleware, :print_media_type => true I then changed my application layout file to include all stylesheet types. If I run rake middleware, the