dpv46227 2011-03-30 20:25
浏览 127

PHP:在Linux中从.PDF,.DOC和.DOCX生成图像缩略图

As the title says,

I'm essentially looking for a way to generate a thumbnail from a .DOC, .DOCX, or .PDF file uploaded to the linux machine.

I understand ImageMagick can handle .PDF to .PNG conversion and is made even easier with PHP's IMagick but I am unsure about .DOC or .DOCX. I think I was told a headless version of OpenOffice can do this.

  • 写回答

1条回答 默认 最新

  • douxianwu2221 2011-08-17 11:51
    关注

    Haven't tested it myself yet however ooo-thumbnailer can apparently make thumbnails of DOC, DOCX and PDF files from version .31 and up.

    The project is available from here: https://launchpad.net/ooo-thumbnailer

    This is a subject that I've spent a long time searching myself and it seems that this is probably your best bet.

    评论

报告相同问题?

悬赏问题

  • ¥15 mmocr的训练错误,结果全为0
  • ¥15 python的qt5界面
  • ¥15 无线电能传输系统MATLAB仿真问题
  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀