How does wkhtmltopdf assist the third-party software that the back end exports complex pdf files?
Wkhtmltopdf how to assist the back-end to export complex pdf files of third-party software, in view of this problem, this article introduces the corresponding analysis and solutions in detail, hoping to help more partners who want to solve this problem to find a more simple and easy way.
1. First, go to wkhtmltopdf to download the Linux version of the corresponding version at the following address: https://wkhtmltopdf.org/downloads.html
2. Here my server is centos7, so download a version of the corresponding centos7 and get a rpm package.
3. Then put it under a directory on the server, and then use the following command:
Rpm-ivh wkhtmltox-0.12.5-1.centos7.x86_64.rpm
4. Then, unexpectedly, the error was reported, and there were so many fewer dependency packages:
5. The relevant dependency packages are missing, so you need to install the corresponding dependency packages (which can be installed according to the missing dependency packages directory)
(1) xorg-x11-fonts-75dpi dependency package:
Yum install xorg-x11-fonts-75dpi.noarch
When asked whether or not, y is restored.
(2) xorg-x11-fonts-Type1 dependency package:
Yum install xorg-x11-fonts-Type1.noarch
Similarly, y is restored when asked whether or not.
(3) libjpeg dependency package:
Yum install libjpeg
(4) libXrender dependency package:
Yum install libXrender
(5) libXext dependency package:
Yum install libXext
(6) it seems that there is no need to install anything else, because at this time I execute the command again:
Rpm-ivh wkhtmltox-0.12.5-1.centos7.x86_64.rpm
With regard to the successful installation of wkhtmltopdf, there may be a problem with the Chinese character set, but at least in this latest version I do not have a problem with the Chinese character set on windows.
Linux requires us to add internal additions such as SIMSUN.TTC and SIMHEI.TTF to / usr/share/fonts.
This is the answer to the third-party software question about how wkhtmltopdf can assist the back-end to export complex pdf files. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel for more related knowledge.