为什么我的 reveal.js PDF 输出在从 2.6.2 升级到 3.5.0 后有 45000 页而不是 350 页?

Why does my reveal.js PDF output have 45 000 pages instead of 350 pages after upgrading from 2.6.2 to 3.5.0?

我最近升级了 this slidedeck from reveal.js 2.6.2 to 3.5.0. Everything works fine, except that the PDF export 现在有 45000 页,而不是升级前的 350 页。

要复制,click on this link 并要求 Chrome 中的打印对话框,其中已经显示了页数。

我的 index.html 没有改变。它仍然有这个代码:

<script>
    if (window.location.search.match(/print-pdf/gi)) {
        document.write('<link rel="stylesheet" href="website/reveal/css/print/pdf.css">');
    }
</script>

这仍然等同于最新自述文件中的 the PDF export instructions

根据the PDF export instructions,

Slides that are too tall to fit within a single page will expand onto multiple pages.

当我在基于 Chromium 的浏览器中打开您的演示文稿时,我看到幻灯片之间有很多空白 space。我认为问题可能出在这里。

从 reveal.js 3 开始,there is a regression 在 PDF 导出中无法很好地处理与 position: absolute 重叠的图像。