Closed amra closed 6 years ago
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=797926 that's because debian has DROPPED these symbols completely from the packages, the code needs to be adjusted to not use them please!!
Wkhtmltopdf issue detail: https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3001
Just install libssl1.0-dev
.
Installing libssl1.0-dev resolves the symbol issue, but if you're attempting to load content over HTTPS, you'll likely still get an error if you're running wkhtmltopdf 0.12.4. See this larger post for details: https://github.com/wkhtmltopdf/wkhtmltopdf/issues/3001
I am using laravel homestead, and i ran into the same issue. sudo apt-get install libssl1.0-dev fixed issue for me.
For Fedora users, to fix this issue you have to install this lib:
sudo dnf install compat-openssl10-devel.x86_64 -y
Hello, For Ubuntu 16.04 (xenial), I tried this fix and it worked for me
curl https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.xenial_amd64.deb --location -o /tmp/wkhtmltox_0.12.5-1.xenial_amd64.deb
sudo apt-get --assume-yes install /tmp/wkhtmltox_0.12.5-1.xenial_amd64.deb
rm /tmp/wkhtmltox_0.12.5-1.xenial_amd64.deb
wkhtmltopdf 'https://www.google.com' /tmp/google.pdf
Hello, For Ubuntu 16.04 (xenial), I tried this fix and it worked for me
curl https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.xenial_amd64.deb --location -o /tmp/wkhtmltox_0.12.5-1.xenial_amd64.deb
sudo apt-get --assume-yes install /tmp/wkhtmltox_0.12.5-1.xenial_amd64.deb
rm /tmp/wkhtmltox_0.12.5-1.xenial_amd64.deb
wkhtmltopdf 'https://www.google.com' /tmp/google.pdf
thanks. you have saved me
If anyone still having the issue on Ubuntu 16.04.6 LTS (check by typing lsb_release -a) try below that worked for me.
I have tried solution provided by @huyhoang1995 but that did not work for me. I am running latest wkhtmltopdf verison but when trying to install libssl1.0-dev I was getting below error.
E: Package 'libssl1.0-dev' has no installation candidate
For Fedora users, to fix this issue you have to install this lib:
sudo dnf install compat-openssl10-devel.x86_64 -y
That worked! Thanks
No need to install anything, this is not an issue with your wkhtmltopdf setup or installation.
It is just due to the content you are trying to render into your pdf, wkhtmltopdf does not accept the third-party content like CSS or JS directly from URL.
As a solution you can do like below
<link href="RELATIVE_CSS_FILE_PATH/style.css" rel="stylesheet"/>
Put the relative path
or
<script type="text/javascript">
//print javascript file content directly here, do not include js file by URL
</script>
No need to install anything, this is not an issue with your wkhtmltopdf setup or installation.
It is just due to the content you are trying to render into your pdf, wkhtmltopdf does not accept the third-party content like CSS or JS directly from URL. As a solution you can do like below
<link href="RELATIVE_CSS_FILE_PATH/style.css" rel="stylesheet"/>
Put the relative path or<script type="text/javascript"> //print javascript file content directly here, do not include js file by URL </script>
This worked for me
No need to install anything, this is not an issue with your wkhtmltopdf setup or installation.
It is just due to the content you are trying to render into your pdf, wkhtmltopdf does not accept the third-party content like CSS or JS directly from URL. As a solution you can do like below
<link href="RELATIVE_CSS_FILE_PATH/style.css" rel="stylesheet"/>
Put the relative path or<script type="text/javascript"> //print javascript file content directly here, do not include js file by URL </script>
which file is this needs to be changed.
No need to install anything, this is not an issue with your wkhtmltopdf setup or installation.
It is just due to the content you are trying to render into your pdf, wkhtmltopdf does not accept the third-party content like CSS or JS directly from URL. As a solution you can do like below
<link href="RELATIVE_CSS_FILE_PATH/style.css" rel="stylesheet"/>
Put the relative path or<script type="text/javascript"> //print javascript file content directly here, do not include js file by URL </script>
I do not have any CSS or JS reference, and also have the same problem. This began around April 2022.
I found this via google and did not find a way to install the package in an up to date version of ubuntu. I "fixed" this by downloading the file to the local disk first and embedding it from there.
Command
docker run -w /foo -v
pwd/test:/foo amra/documentation-as-code pandoc --self-contained --standalone --number-sections --table-of-contents --pdf-engine=wkhtmltopdf wkhtmltopdf.md -o wkhtmltopdf.pdf --template standalone.html
Output