将 PDF 添加到 AFP 输出

发布于 2024-07-14 23:04:07 字数 81 浏览 4 评论 0原文

我们正在尝试获取在 Web 应用程序中创建的 PDF 文件并将其动态插入到 IBM iSeries 上的 AFP 数据流中。 有谁知道这是否可能?

We're trying to take a PDF file created in a web application and dynamically insert it into an AFP datastream on an IBM iSeries. Does anyone know if this is possible?

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

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

发布评论

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

评论(3

凹づ凸ル 2024-07-21 23:04:07

简而言之,答案并不容易。

有两种方法可以做到这一点。 最简单的方法是将 pdf 转换为一系列 tiff 图像并重写 afp 流以将它们包含为 IOCA 图像。 如果它们是 G4 压缩的双色传真,则可以轻松转换为 IOCA group 10。

第二种方法是将 pdf 转换为 AFP(这两种格式有很多相似之处)并重写 AFP 流以包含它。 如果 PDF 没有嵌入字体,那么将字体映射到 AFP 字体应该不会有太大麻烦。

乍一看可能不太正确。 AFP 允许您比 PDF 更准确地定位元素。

The short answer is not easily.

There would be two ways to do that. The easiest way would be to convert the pdf to a series of tiff images and rewrite the afp stream to include them as IOCA images. If they are two-color fax G4 compressed, they can be converted to IOCA group 10 without too much trouble.

The second way would be to convert the pdf to AFP (the two formats have a lot of similarities) and rewrite the AFP stream to include it. If the PDF doesn't have embedded fonts then you shouldn't have too much trouble mapping the fonts to the AFP ones.

It may not look quite right at first. AFP allows you to position elements much more accurately than PDF does.

善良天后 2024-07-21 23:04:07

我同意前面的答案,这不是一个“简单”的任务...

但是如果您熟悉 AFP 结构(或者至少愿意学习规范),您可以使用 AFP 的对象容器从技术上将单页 PDF 对象添加到 AFP 中。

但缺点是您需要一个相当现代的 AFP 打印环境来实际处理包含 PDF 对象容器的 AFP。 我接触过的大多数打印机都无法处理它。

因此,最好将 PDF 转换为 AFP 并将其合并到父文档中。 像 Xenos.com 的 d2e Vision 这样的应用程序可以很好地做到这一点。

I agree with the previous answer that it's not an "easy" task...

But if you are familiar with AFP structure (or at least willing to learn the spec) you can technically add single page PDF objects into AFP using AFP's Object Containers.

But the downside is that you'll need a pretty modern AFP print environment to actually handle AFP that contains PDF object containers. Most printers I've dealt with won't handle it.

So converting the PDF to AFP and merging it into the parent document would be best. Applications like Xenos.com's d2e Vision will do a nice job of this.

岁月流歌 2024-07-21 23:04:07

您可以尝试 COMPART CPMILL,在这里您可以将 PDF 转换为 AFP,然后可以轻松地将其插入到 AFP。
我们使用这个工具在 AFP 中插入 PNG 图像。

You could try COMPART CPMILL, where you can convert your PDF to AFP and then you can insert easily it to your AFP.
We use this tool to insert PNG images in AFP.

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