In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
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.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
[admin@app-duiba001 notify-center] $gradle testFAILURE: Build failed with an exception.* What went w
© 2024 shulou.com SLNews company. All rights reserved.