过去,reveal.js 会为每张幻灯片生成一个 PDF 页面。现在,截至this issue ,它为每个片段生成一个 PDF 页面。不过,我想以旧的每幻灯片一页格式生成 PDF。
This comment on that issue表明有一个配置选项,但从项目文档中并不清楚它是什么。
哪个配置选项控制这个?或者,是否有另一种方法可以让 Reveal.js PDF 导出为每张幻灯片一页?
最佳答案
来自reveal.js 'README.md ,在PDF Export下> Separate pages for fragments :
Fragments are printed on separate slides by default. Meaning if you have a slide with three fragment steps, it will generate three separate slides where the fragments appear incrementally.
If you prefer printing all fragments in their visible states on the same slide you can set the
pdfSeparateFragments
config option to false.
因此,您似乎可以通过以下方式导出每个页面的多个片段:
Reveal.configure({ pdfSeparateFragments: false });
关于reveal.js - 我们如何为每张幻灯片(而不是每个片段)创建一个 PDF 页面?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59039051/