PHP TCPDF 创建多个 PDF
我创建了一份报告并使用 TCPDF 将其导出为 PDF。 我想将报告的不同部分发送到不同的邮件地址,因此我必须在一个过程中创建多个 PDF。 是否可以使用 TCPDF 来实现?如果是的话,我实际上该怎么做?
提前致谢
I've created a report and exported it to PDF using TCPDF.
I want to send different parts of the report to different mail adresses, therefor I have to create multiple PDFS in one proccess.
Is it possible doing it using TCPDF? If it is , how can I practically do it?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TCPDF 旨在创建单个 PDF。
实际上,一种可能的方法是创建多个 TCPDF 对象,以及将报告片段添加到 PDF 的方法,以及使用代码将报告添加到 pdf 的方法。
通过搜索多种方法的现有答案,可以更好地回答将每个 pdf 作为附件通过电子邮件发送到不同的电子邮件地址。
TCPDF is designed for creating single PDFs.
A possible way to do it practically would be to create multiple TCPDF objects, and methods for adding a report piece to a PDF, and using code to add the report to the pdf.
Emailing each pdf to a different email address as an attachment would be better answered by just searching for existing answers to the many ways of doing it.