将 PDF 页面转换为 TIF 文件

发布于 2024-09-09 03:40:42 字数 908 浏览 3 评论 0原文

我需要从我的应用程序中将 PDF 页面转换为 TIF 文件(或使用我们开发的控制台应用程序...)

我已经尝试了一些第 3 方工具/应用程序,但只是为了加载我的页面之一,他们可以采取在复杂图形(最初由 AutoCAD 创建的蓝图)上,字面上比 Acrobat Reader 高出一个数量级或更多。这些类型的第 3 方库是否很慢,因为它们通常直接访问 .pdf,而不是通过 Acrobat API?)

我认为我需要成为 Adob​​e 开发人员,以便可以访问他们的 API。

这里有人走过这条路吗?我是一名 Delphi 开发人员,并且更愿意留在 Delphi,猜测我会使用 Adob​​e 的 IAC API (COM)。但是,Adobe 网站(链接)指出 IAC 不能使用读者。不幸的是,我不能要求我的用户购买和使用安装完整的 Acrobat。

但随后,该网站指出:

您还可以扩展功能 IAC接口的写法 使用核心 API 对象的插件不 已经成为 IAC 支持的一部分 系统。

这是怎么回事?这就是我需要做的吗?

有什么建议吗?我的下一步是什么,哪个 Adob​​e API,哪个开发者计划适合我们,我们应该花多少钱加入,API 是否稳定(并且假设用户安装了 Reader)&依赖于各种 Windows 机器,如何避免学习一个巨大的类库只是为了进行我们希望的三个调用:

  1. 打开 PDF
  2. 将页面 x 保存为 TIF
  3. 关闭 PDF

我问的是人们在制作此文件时提出的常见问题一种决定。欢迎任何建议。

谢谢。

I need to convert PDF pages to TIF files from within my app (or using a console app we shell out to...)

I've tried some 3rd party tools/apps, but just to load one of my pages, they can take literally an order of magnitude or more than Acrobat Reader on the complex graphics (blueprints originally created by AutoCAD). Are these kinds of 3rd party libraries slow because typically they're accessing the .pdf directly rather than through the Acrobat API?)

I think I need to become an Adobe Developer so I can access their API.

Has anyone here gone down this path? I'm a Delphi developer and would prefer to stay in Delphi, guessing I'd use Adobe's IAC API (COM). However, Adobe's site (link) states that IAC can't use the Reader. Unfortunately, I can't ask my users to buy & install the full Acrobat.

But then, the site states:

You can also extend the functionality
of the IAC interfaces by writing
plug-ins that use core API objects not
already part of the IAC support
system.

What's that all about? Is that what I'll need to do?

Any suggestions what my next step would be, which Adobe API, which Developer program would suit us, how much we should expect to spend to join, whether the API is stable (and, assuming the user has the Reader installed) & dependable on a wide range of Windows machines, how to avoid learning an enormous class library just to make what we hope are three calls:

  1. Open PDF
  2. Save Page x as TIF
  3. Close PDF

I'm asking the usual general questions that one asks when making this kind of decision. Any suggestions are welcome.

Thanks.

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

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

发布评论

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

评论(3

老娘不死你永远是小三 2024-09-16 03:40:42

您可以使用ImageMagick转换工具,但请检查其许可证是否允许与其他软件集成。它是在 Apache 2.0 风格的许可证下分发的,我不知道它的细节。

http://www.imagemagick.org/script/index.php
http://www.imagemagick.org/script/convert.php

如果我记得的话正确地将 pdf 转换为 tiff 非常简单:

convert.exe file.pdf[0] file.tif 

其中 0 是页数。
您可以跳过页数并用于

convert.exe file.pdf file.tif

生成多页 tiff 文件。

您可以用来

identify.exe file.pdf

确定文件的详细信息,包括页数。

您可以使用许多其他输出格式,例如 gif、png 等。

You could use ImageMagick convert tool, but check its license if it allows integration with other software. It is distributed under an Apache 2.0-style license and I don't know the details of it.

http://www.imagemagick.org/script/index.php
http://www.imagemagick.org/script/convert.php

If I remember correctly converting pdf to tiff is as simple as:

convert.exe file.pdf[0] file.tif 

where 0 is the number of page.
You can skip the number of page and use

convert.exe file.pdf file.tif

to generate a multipage tiff file.

You can use

identify.exe file.pdf

to determine the details of the file, including number of pages.

You can use many other output formats, like gif, png and many many others.

油饼 2024-09-16 03:40:42

也许以编程方式执行此操作是看待这个问题的错误方法。您是否考虑过打印而不是转换为 .TIF 文件?你尝试过 GhostScript 吗?我们在我的工作场所使用它来自动化打印 - 尽管是实际的打印机,但也有一些转换器显示为打印机。 GhostScript 需要一点时间来设置,诚然,我从未打印到实际的 .TIF,但快速的 Google 搜索给了我一个教程 此处。祝你好运!

Maybe doing this programmatically is the wrong way of looking at this problem. Instead of converting to a .TIF file, have you considered printing to one? Have you tried GhostScript? We use it at my workplace to automate printing - albeit to actual printers, but there are converters that show up as a printer. GhostScript takes a little bit to get setup, and admittedly I've never printed to an actual .TIF, but a quick Google search gave me a tutorial here. Good luck!

笛声青案梦长安 2024-09-16 03:40:42

我正在使用 Blackice 单色打印驱动程序将任何类型的可打印文档(包括 pdf)转换为 tiff:
http://www.blackice.com/Printer%20Drivers/TIFF% 20Printer%20Drivers.htm

I'm using Blackice monochrome print driver to convert to tiff any kind of document that can be printed, including pdf:
http://www.blackice.com/Printer%20Drivers/TIFF%20Printer%20Drivers.htm

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