如何使用pdfreactor从多个HTML创建单个PDF。

huangapple go评论61阅读模式
英文:

How to create a single pdf from multiple html using pdfreactor

问题

我有一个动态列表的HTML字符串,并希望使用pdfreactor将它们合并成一个PDF文件。configuration.setMergeDocuments 方法只接受PDF文件作为输入,而不是HTML。如何以最佳方式使用pdfreactor从多个HTML字符串中生成单个PDF文件?

英文:

In my code I have a dynamic list of html strings and want to create a single pdf out of it using pdfreactor.
The configuration.setMergeDocuments method only accepts pdf files as input, not html.
What is the best way to get a single pdf out of multiple html strings using pdfreactor?

答案1

得分: 0

我已联系了技术支持。不幸的是,目前还没有办法从多个HTML文件创建PDF(尚未支持)。您必须分别创建所有的PDF文件,然后使用一个变通方法,使用一个空的HTML文件和覆盖选项来合并先前创建的PDF文件。

英文:

I have contacted support. Unfortunately there is no way (yet) to create a PDF from multiple HTMLs. You have to create all PDFs separately and then use a workaround with an empty HTML and the overlay option to merge the previously created PDFs.

huangapple
  • 本文由 发表于 2023年7月6日 19:12:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76628209.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定