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
相关推荐
Ubuntu Server 14.04服务器指南文档包含了丰富的服务器配置信息,旨在帮助用户根据自身需求安装和配置各种服务器应用。该指南详细介绍了系统安装、软件包管理、服务器应用程序配置以及网络设置等多个方面的内容。...
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共享...
### 安装Anaconda在Ubuntu上的详细步骤及关键知识点 #### 一、Anaconda简介 Anaconda是一款非常受欢迎的数据科学平台,它集成了Python或R语言环境中的许多库和工具,便于用户进行数据处理、科学计算、机器学习等...
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 ...
根据提供的文件信息,本书《Installing and Configuring Windows Server 2012 Exam Ref 70-410》是一本针对Microsoft认证考试70-410的专业辅导教材。本书由Craig Zacker编写,并由Microsoft Press出版。以下是本书中...
### 安装STLinux在Ubuntu上的关键步骤与挑战 #### 概览 本文将深入探讨在Ubuntu上安装STLinux的全过程,重点解析由于包管理系统的差异而带来的挑战及其解决方案。对于那些希望在Ubuntu环境中利用STLinux强大功能的...
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. ...
- 如果一台计算机运行的是64位的Windows Server 2008或Windows Server 2008 R2,则可以升级到Windows Server 2012 R2,前提是使用相同的操作系统版本。 - Windows Server 2012 R2不支持以下升级路径: - 从...
根据提供的文件信息,我们可以得出《Exam 70-410 Installing and Configuring Windows Server 2012 Lab Manual》是一本针对微软认证考试70-410的专业实验手册,该手册主要围绕Windows Server 2012的安装与配置进行...
Installing Avaya S8800 Server
Exam Ref 70-410 Installing and Configuring Windows Server 2012
- **Training Guide Installing and Configuring Windows Server 2012**:此标题明确指出这是一本关于安装与配置Windows Server 2012的培训指南。 - **70-410 Training Guide Installing and Configuring Windows ...