Wkhtmltopdf Latest Version Download

0 views
Skip to first unread message

Bethann Letchworth

unread,
Jul 22, 2024, 7:18:43 AM7/22/24
to diconskowsxyzt

I wonder why SC puts all this third party software , which is not SC responsibility, wkhtmltopdf is not even used in SC i believe , pdf app type is hooked up in another pdf library.
you find a right version and plug it in.
I guess it is time SC cleans up the installation,
it is so huge , it is unbearable . also the update of the production env should be addressed,
how come there is no option to update it from the deployment center after the initial deployment
there is production environment , it is another place SC may consider to add upgrades such that a right version of the production libraries is pulled from the SC server.

wkhtmltopdf latest version download


Wkhtmltopdf Latest Version Downloadhttps://blltly.com/2zCNAf



I see a number other pdf libraries in prod/third such as qpdf, tcpdf
I make only custom pdf from html , therefore i use wkhtmltopdf, this requires a lot of customization
for headers, footers, TOC, quality.
but i think the standard export to pdf uses something much simpler

You might delete unused or customized third party libraries from ZIP before making an upload to your production. (such as wkhtmltopdf, otherwise SC files will overwrite your customizations).
#thirdparty #applications:prod-environment #deployment #wkhtmltopdf

by the way , I am using version 0.12.6 of wkhtmltopdf. previous versions had bugs.
you need wkhtmltopdf-amd64 for CENTOS
(centos is discontinued from 2022, you need to step over to Alamalinux. )
we run now dev and few production on #almalinux on Azure VM , works good except some #Azure limitations that are already solved.

no big deal, i was wondering if the standard export of scriptcase to pdf and pdf app are using wkhtmltopdf from the third parties lib at all. Cause if so , which functionality is using it and why they are using an old buggy version?

I added PDFkit to my gemfile and the appropriate config options to my
application.rb. I then tried to see if a could get a pdf version of one
of the pages in my app and I got the following action controller
exceptionNo wkhtmltopdf executable found at /usr/local/bin/wkhtmltopdf
>> Install wkhtmltopdf by hand or try running `pdfkit --install-wkhtmltopdf`I tried installing using the commandpdfkit --install-wkhtmltopdfthis didn't go smoothly and I had to add the directory and change some
permissions but I got it installed. I'm still getting a permission
denied exception but as far as I can tell the file is rwx for allIt kind of feels like I have drifted down the wrong path completely with
this. If anyone has any pointers they would be greatly appreciated
--
Posted via -forum.com/.

Thanks you so much for your reply. My development environment is snow
leopard and then I deploy to a ubuntu server. To be honest I'm just
trialling stuff at moment but strangely ran into problems getting
things working on snow leopard. I actually figured out what was going
on but I will definitely be looking at your advice when it comes to
deploying to ubuntu.Basically I figured out that the problem was due where/how the gem is
installed under RVM. I checked where the gem was installed which was/Users/conor/.rvm/gems/ruby-1.9.2-p0/bundler/gems/PDFKit-652209dI then ran the command recommended in the POST_INSTALL readme in tis
directory export TO=`which pdfkit sed 's:/pdfkit:/wkhtmltopdf:'` && pdfkit
--install-wkhtmltopdfwhich installed wkhtmltopdf to/Users/conor/.rvm/gems/ruby-1.9.2-p0/bin/wkhtmltopdfI then set the configuration for PDFKit to point to this path in my
application.rb #pdfkit
config.middleware.use "PDFKit::Middleware"
PDFKit.configure do config
config.wkhtmltopdf =
'/Users/conor/.rvm/gems/ruby-1.9.2-p0/bin/wkhtmltopdf'
endEverything seems to be working so far

David, Conor,I tried to install via the method mentioned by Conor above and when I
generate a PDF, it comes up blank. I also try running from the command
line and I also get a blank PDF. It's really strange, when I installed
the first time (into the default location) and I ran from command line,
I got it to work with "wkhtmltopdf www.google.com goof.pdf" but it
hasn't worked since. I have a new MacBook, running rvm with ruby 1.8.7
and rails 3.Any thoughts you have would be greatly appreciated. I'm wondering if I
somehow need to do a complete delete after the various attempts at
installation, but I don't see anything else to delete aside from the
wkhtmltopdf file in use/local/bin or the rvm directory. Have either of
you had to install the 64 bit version?Thanks,
Nick

I think that you are right and the problem lies with your installation
of wkhtmltopdf given your command line problems. Maybe try uninstalling
wkhtmltopdfapt-get remove wkhtmltopdfand then installing via PDFKitpdfkit --install-wkhtmltopdfor manuallySorry, I know this isn't much help!
Nick Burdick wrote in post #964978:

Thanks for replying guys,I tried to revert back to my system Ruby (out of RVM) and installing
pdfkit via Gem install. Then in installed wkhtmltopdf with pdfkit as
stated above. It runs from the command line, but it still creates a
blank pdf. It's funny, the pdfs open but there is just no content. I'm
stumped.

In my application.rb file I have put this: config.middleware.use PDFKit::Middleware
PDFKit.configure do config
config.wkhtmltopdf = '/usr/local/bin/wkhtmltopdf'
endNow this is SUPPOSED to allow me to add a .pdf extension to my URL's to
get a PDF version of the page, however, when I do that, from that point
on I get ALL pages as pdf. ie. if I then click on a link in the PDF, it
generates another pdf file of the next page, etc.If I try and just go to a page without the PDF, it continues to generate
PDFs until I stop the server.Anyone else have this problem?These are the relevant gems installed:
wkhtmltopdf-binary (0.9.5.1)
pdfkit (0.5.0)
wkhtmltopdf 0.9.9

yes, I have installed wkhtmltopdf 0.12.1 and additional reportlab fonts (pfbfer.zip). I can "print" barcode in display if i set Odoo report format as HTML. But when i set to pdf, no barcode is shown and a typical box is shown in the file.

Anyway, so I tried downloading the program from this website but I ran into a few problems. First of all, from the list on the side, what should I download? I just see a bunch of random numbers and file extensions that don't mean anything to me. I tried the top one on the list and the one called "wkhtmltopdf.dmg".

Secondly, once I download the file, how do I install and use the program? It seems that on most files I have downloaded, it gives me a .dmg file. I don't know what a .dmg file is, but usually when I download stuff I just somehow know what to click on and suddenly the program is running. In this case, the .dmg file doesn't lead to anything, and I think I am expected to go into the terminal and work some magic. I tried using terminal but I just don't understand how it works. I was able to "cd" my way to the folder containing the file I downloaded. Then I tried running the commands that the link above told me to run: wkhtmltopdf www.myhomepage.com myhomepage.pdf. However, I keep getting wkhtmltopdf: command not found.

Regarding the wkhtmltopdf version, we're using v0.12.4 here. It's always required a functioning X server, which is what xvfb-run is providing here. If you've been using wkhtmltopdf on a Linux desktop or a server with a functioning X server then you probably already have a working X server and would not need to run wkhtmltopdf via xvfb-run.

wkhtmltopdf allows you to create a snapshot or capture the content of a web page easily in a PDF. Wkhtmltopdf version 0.12.5 (with patched qt) is currently installed on the Pantheon Platform. For more information regarding the qt patch, read the wkhtmltopdf documentation.

Currently, there are no known plugins that implement wkhtmltopdf directly. However, you can use the converter by creating a custom plugin or by placing the code within your theme's functions.php file.

Due to a known issue in wkhtmltopdf 0.12.5 and sites that use the CSS quotes property, some users may have issues with downloading a PDF created by wkhtmltopdf. In Live environments, creating a PDF fails silently. On Dev, you'll encounter the error Unable to generate PDF file.

Adrian,
your server is configured so that PHP has no access to temp directory. You can change directory to be used with wkhtmltopdf by adding definition to the 'Server side files' -> defaults.php:

With the option, myDBR will create the HTML file and shows you the command it would have executed with wkhtmltopdf. You can then run the same command from the servers command line to see the errors causing error 134. Could be that the wkhtmltopdf version is so old that it requires X-libraries.

wkhtmltopdf debugTo test wkhtmltopdf pdf generation, copy the following command into the server's command line.myDBR saved the generated HTML file into /var/www/vhosts/domain.at/tmp/mydbr_export_1722029187.html. File size is: 28393 bytes.$ wkhtmltopdf -O Landscape --margin-top "20" --header-spacing "8" --header-html " _header_pdf.php" --replace rdate "04.06.2020" --replace rtime "12:00:02" /var/www/vhosts/domain.at/tmp/mydbr_export_1722029187.html debug_output.pdf

OK,
the 0.12.1 is an old release which requires X-libraries to be installed and threfore one needs to call it using xvfb. Easiest solution is to download the latest wkhtmltopdf (0.12.5) and use that. As a bonus, 0.12.5 has many bugs resolved that exists in 0.12.1.

For printing-related purposes, Odoo 16 requires a wkhtmltopdf version higher than 0.12.2. Wkhtmltopdf is an open-source command line tool to render HTML data into PDF format using Qt webkit. To install wkhtmltopdf on your Ubuntu 22.04 server, follow the steps below.

wkhtmltopdf is a command line program which permits one to create apdf or an image from an url, a local html file or stdin. It produces a pdf oran image like rendered with the WebKit engine.This program requires an X11 server to run.It is not built against a forked version of Qt hence some options are notsupported. Tags: Implemented in: C++, User Interface: Graphical User Interface, interface::x11, role::program, Interface Toolkit: Qt, Purpose: Data Conversion, Supports Format: works-with-format::html, works-with::text, X Window System: Application

760c119bf3
Reply all
Reply to author
Forward
0 new messages