Hello,
We have created an addon for generating PDF files locally. If you are interested you can install the add-on by following the instructions on the github page: https://github.com/poppedweb/pp_local_pdf.
Kind regards,
Hello,
We have created an addon for generating PDF files locally. If you are interested you can install the add-on by following the instructions on the github page: https://github.com/poppedweb/pp_local_pdf.
Kind regards,
Thanks. Does it support headers and footers?
Thanks. Does it support headers and footers?
Everything in the current e-mail templates is supported since it is exactly the same to CS-Carts setup for converting HTML to PDF.
Furthermore, WkHtmlToPdf has a seperate option for adding headers and footers if that is what you desire. To achieve this you will have to push the following options:
$options = array( 'footer-html' => '....', 'header-html' => '....' )
Let me know if you have any more questions.
Wow, thanks! Will install this soon. (PS on your homepage: laser is with an S :) )
Wow, thanks! Will install this soon. (PS on your homepage: laser is with an S :) )
Well, it's and inside joke from one of our devs. But for your satisfaction I'll change it ;)
Everything in the current e-mail templates is supported since it is exactly the same to CS-Carts setup for converting HTML to PDF.
Furthermore, WkHtmlToPdf has a seperate option for adding headers and footers if that is what you desire. To achieve this you will have to push the following options:
$options = array( 'footer-html' => '....', 'header-html' => '....' )Let me know if you have any more questions.
CS-Cart's pdf converter also supports headers and footers, but the file is not generated if you put this data. Error is received and looks like they do not consider it as a bug
Well, it's and inside joke from one of our devs. But for your satisfaction I'll change it ;)
oh haha well don't change it for me :D
CS-Cart's pdf converter also supports headers and footers, but the file is not generated if you put this data. Error is received and looks like they do not consider it as a bug
Seeing that it's just default functionality of WkHtmlToPdf, this shouldn't be a problem at all.
i install this but converted pdf. is 0 byte what can be problem ?
Seeing that it's just default functionality of WkHtmlToPdf, this shouldn't be a problem at all.
Unfortunately, online generator from CS-Cart does not support all parameters of WkHtmlToPdf
i install this but converted pdf. is 0 byte what can be problem ?
The problem most likely is that you didnt follow the installation instructions properly. When you install WkHtmlToPdf directly from the apt repository it requires a display to be attached, therefore you will have to compile the library yourself with the following commands, that is assuming you are on Ubuntu 18.04 LTS:
sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~bionic_amd64.deb sudo dpkg -i wkhtmltox_0.12.1.3-1~bionic_amd64.deb sudo apt-get install -f sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
i am 16.4 i install follow your guide. same also i install vie apt gen install wkhtmltopdf
same result
i am 16.4 i install follow your guide. same also i install vie apt gen install wkhtmltopdf
same result
Can you access the CLI and type 'wkhtmltopdf http://google.comgoogle.pdf' and share the error notice with us?
QXcbConnection: Could not connect to display
Aborted
i am install 0.12.4 lets test with that
i am install 0.12.4 lets test with that
This is a result of not building the library from source, you can not instal it with a package manager because the applications there are not compiled headless. I modified the script to work with your ubuntu version:
sudo wget https://builds.wkhtmltopdf.org/0.12.1.3/wkhtmltox_0.12.1.3-1~xenial_amd64.deb sudo dpkg -i wkhtmltox_0.12.1.3-1~xenial_amd64.deb sudo apt-get install -f sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
worked now non english characters getting problem. any idea to fix ?
0.12.4 worked mate
added
to
design/backend/mail/templates/common/wrap_document.tpl
fixed
worked now non english characters getting problem. any idea to fix ?
0.12.4 worked mate
Yes, you can try adding the appropiate encoding to the file if you want. There are 2 ways to do so:
1. Add encoding to the html document.
2. Add encoding as an option in the array
$default_params = array( 'no-outline', 'margin-top' => 0, 'margin-right' => 0, 'margin-bottom' => 0, 'margin-left' => 0, 'page-size' => 'A4', 'encoding' => '%YOUR ENCODING%' );
thanks for your feedbacks. great job ! thank you.