1:
sudo apt-get install wkhtmltopdf
2:
sudo apt-get xvfb
3: 切换到root用户:
echo 'xvfb-run --server-args="-screen 0, 1024x768x24" /usr/bin/wkhtmltopdf $*' > /usr/bin/wkhtmltopdf.sh
4:ln -s /usr/bin/wkhtmltopdf.sh /usr/local/bin/wkhtmltopdf
5:安装完成了,测试下:
wkhtmltopdf http://www.baidu.com output.pdf
php用到此工具的api: https://github.com/hongtoushizi/phpwkhtmltopdf
相关推荐
Installing Ubuntu—Getting started 11 Finishing Installation 16 2 The Ubuntu Desktop 19 Understanding the Ubuntu desktop 19 Unity 19 The Launcher 21 The Dash 21 Workspaces 24 Managing windows 24 Unity...
Installing Ubuntu 14.04 & ROS & TurtleBot 06-29-2016 个人小结,关于Ubuntu和ROS的安装。
面是我在Ubuntu6.06 LTS 下源码编译安装samba主要安装过程,本人第一次用Ubuntu,刚装上去时候,没有gcc编译环境。郁闷了半天。找出这一过程发了不少的时间。可能还有些不妥,不过我经过这样的安装达到了向windows共享...
Installing STLinux on Ubuntu
Automate Ubuntu installs, no matter how many servers you’re installing Quickly set up low-cost Web servers and e-mail Protect your server with Ubuntu’s built-in and optional security tools ...
Installing and configuring Ubuntu to ensure secure installations Virtual Ubuntu and LDAP configuration Full network and web services management What you’ll learn Administer, install, and configure ...
The Ubuntu Server Guide contains information on how to install and configure various server applications on your Ubuntu system to fit your needs. It is a step-by-step, task-oriented guide for ...
mcsa考试题库。exam:70-410 。Installing and Configuring Windows Server 2012 R2
Installing the Ubuntu Server Chapter 3. Usage Basics: Login, Interfaces, and Help Chapter 4. Managing Software Part 2: Services Chapter 5. Managing Services with systemd Chapter 6. Mail Servers ...
Ubuntu Server Succinctly illuminates the path from installing Ubuntu Server on a machine to configuring user accounts, groups, directories, networks, databases, and more. In only a few dozen pages, ...
Fully updated for Windows Server 2012 R2! Prepare for Microsoft Exam 70-410 – and help demonstrate your real-world mastery of implementing and configuring core services in Windows Server 2012 R2. ...
70 410认证考试辅导书,写的比较浅显易懂,是英文的。
Installing and Configuring Windows Server 2012 Lab Manual
70-410 Installing and Configuring Windows Server 2012
Installing SQL Server 2008 on a Windows Server 2008 Cluster
70-410 Training Guide Installing and Configuring Windows Server 2012 安装与配置Windows Server 2012 官方认证材料
Installing RAC on AIX
Installing Avaya S8800 Server