如何在PDF上合并邮件? [英] How to do mail merge on top of a PDF?

查看:433
本文介绍了如何在PDF上合并邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常从我们的设计器(内置于Adobe InDesign)中获取PDF,应该发送给成千上万的人.

I often get a PDF from our designer (built in Adobe InDesign) which is supposed to be sent out to thousands of people.

我得到了所有人的名单,在OpenOffice.org中进行邮件合并很容易.但是,OpenOffice.org不支持高级PDF.我只想在每页上输出一些文本并打印出来.

I've got the list with all the people, and it's easy doing a mail merge in OpenOffice.org. However, OpenOffice.org doesn't support the advanced PDF. I just want to output some text onto each page and print it out.

这是我现在的操作方式:打印出6000份PDF,然后将它们全部重新放入打印机,然后在其顶部打印出名称,地址和其他信息.但这很昂贵.

Here's how I do it now: print out 6.000 copies of the PDF, then put all of them into the printer again and just print out name, address and other information on top of it. But that's expensive.

遗憾的是,我无法将PDF转换为图像,也无法在OpenOffice.org中使用该PDF,因为它会使计算机停止运转.将作业发送到打印机还需要花费很长时间.

Sadly, I can't make the PDF to an image and use that in OpenOffice.org because it grinds the computer to a halt. It also takes extremely long time to send this job to the printer.

那么,有没有一种简便的方法可以完成此邮件合并(最好在Python中)而无需支付第三方封闭式解决方案的费用?

So, is there an easy way to do this mail merge (preferably in Python) without paying for third party closed solutions?

推荐答案

现在,我已经建立了一个帐户.我通过使用巧妙的pdftk对其进行了修复.

Now I've made an account. I fixed it by using the ingenious pdftk.

在我的任务中,我完全忽略了背景"和覆盖"功能.我的解决方法是这样:

In my quest I totally overlook the feature "background" and "overlay". My solution was this:

pdftk names.pdf background boat_background.pdf output out.pdf

创建names.pdf可以轻松地使用Python reportlab或类似的PDF创建脚本来完成.最好使用代码来做到这一点,在LibreOffice/OpenOffice中创建6k页面要花几个小时,而使用Python则只花了几秒钟.

Creating the names.pdf you can easily do with Python reportlab or similar PDF-creation scripts. It's best using code to do that, creating 6k pages took several hours in LibreOffice/OpenOffice, while it took just a few seconds using Python.

这篇关于如何在PDF上合并邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆