最近在研究使用Camelout解析PDF表格。Camelot有点像selenium那样会驱动浏览器,只不过Camelot驱动的是Ghostscript。
那么Ghostscript又是什么呢,下面点解了解一下:
Ghostscript是一套建基于Adobe、PostScript及可移植文档格式(PDF)的页面描述语言等而编译成的免费软件。
进入正题 - linux CentOS8 安装Ghostscript
下载页面:https://www.ghostscript.com/download/gsdnld.html
windows系统直接下载对应版本,直接安装即可(注意最后直接让安装程序配置PATH变量)。
Linux系统有两种方法:
*centos系统其实是自带Ghostscript的
- 直接下载Ghostscript 9.54.0 for Linux x86(对应位)替换/usr/bin下的gs即可。
另一种是下载rar.gz编译安装:(Ghostscript 9.54.0 Sourcefor all platforms)
[root@deepsc ~]# cd /usr/src [root@deepsc src]# wget http://ghostscript.com/releases/ghostscript-9.54.0.tar.gz [root@deepsc src]# tar zxvf ghostscript-9.54.0.tar.gz [root@deepsc src]# cd ghostscript-9.54 [root@deepsc ghostscript-8.71]# ./configure --prefix=/usr [root@deepsc ghostscript-8.71]# mkdir obj [root@deepsc ghostscript-8.71]# mkdir bin [root@deepsc ghostscript-8.71]# make all [root@deepsc ghostscript-8.71]# make install
centos8 打印pdf不生成pdf文件,这是什么原因
你想做什么吧,是输出到界面还是输出到文件