基于 Linux 的 MS Office 缩略图生成

发布于 2024-08-13 07:28:18 字数 300 浏览 3 评论 0原文

我被带去开发一个基于 PHP 的 Web 应用程序。该应用程序的一部分按需生成 MS Office 文档的缩略图,并使用 MS Office + VeryPDF docprint 实用程序来执行此操作。由于这一要求,系统运行在 Windows Server 2003 + IIS 上。

我更愿意让系统运行在Linux服务器上,而不是MS上,因为我在管理Linux系统方面比Windows有更多的经验,而且我们没有其他内部技术人员。

有谁知道使用本机 Linux 软件处理文档转换的方法吗?我喜欢 PHP 原生的东西,但如果有必要的话我愿意看看外面的东西。

I've been taken onboard to work on a PHP-based web application. One part of the application generates thumbnail images for MS Office documents on demand, and it uses MS Office + the VeryPDF docprint utility to do this. Because of this one requirement, the system is running on Windows Server 2003 + IIS.

I would prefer to have the system running on a Linux server, rather than MS, as I have far more experience in administering Linux systems than Windows and we have no other in-house technical staff.

Does anyone know a way to handle the document conversion using native Linux software? I would love something PHP native, but am willing to look outside that if necessary.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

春花秋月 2024-08-20 07:28:18

我从来没有做过这样的事情,所以我只是抛出一个想法。

您是否考虑过利用 Open Office 的功能来创建缩略图?我知道 OO 将缩略图保存在创建的文档中,因此您所需要做的就是提取图像以显示它。 (这是在 Ubuntu 论坛上演示的。)你总是可以这样做某种“hackish”,您通过 OpenOffice 运行文件并提取图像以显示小缩略图。

再说一遍,我不知道这会有多好,但可能值得一试。

I have never done anything like this, so I'm just throwing an idea off the top of my head.

Have you thought about utilizing Open Office's capabilities to create thumbnail images? I know OO saves thumbnail images within a created document, so all you need to do is extract the image to display it. (This is demonstrated on the Ubuntu forums.) You could always do something sort of "hackish" where you use run a file through OpenOffice and extract the image to display a small thumbnail.

Again, I have no idea how well this will work, but it may be worth a shot.

岁月流歌 2024-08-20 07:28:18

对于遇到此问题的其他人,我最终选择了更新版本的 jodconverter 。示例代码包括一个基本网页,可以使用 Pear 的 HTTP_Request2 等方式发布到该网页。 jodconverter 小组<的评论中提到了使用此功能的示例类(真正由您自己编写) /a> 在谷歌代码上。

To anyone else who comes across this, I have ended up going with the newer version of jodconverter. The sample code includes a basic web page that can be POSTed to using something like Pear's HTTP_Request2. A sample class (by yours truly) which uses this is mentioned in the comments in jodconverter's group on google code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文