dou6495 2009-05-11 14:56
浏览 257

PDF的无损合并(PHP)

Currently I am using ImageMagick to merge multiple PDFs into one in a PHP script on my Linux system. However, the resulting PDFs are of very low quality. I have stumbled across pdftk which seems to have a better quality after the merging, but I need to use ImageMagick if possible because I need to get the script to run on another server which does not have pdftk (and it would be a pain to get it on there).

How can I merge PDFs using ImageMagick and PHP with lossless quality?

  • 写回答

2条回答 默认 最新

  • douren9077 2009-05-11 22:33
    关注

    ImageMagick can't do lossless PDF merging. If you have a Linux server, you may try pdfconcat (which does lossless merging very quickly):

    $ wget -O pdfconcat http://www.math.bme.hu/~pts/cvsget.cgi/u=bin.i386/p=/M=bin.i386/c=f1/n=/bin.i386/pdfconcat
    $ chmod +x pdfconcat
    $ ./pdfconcat -o output.pdf input1.pdf input2.pdf input3.pdf
    
    评论

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办