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

I recently updated this slide from opens.js 2.6.2 to 3.5.0. Everything works fine, except that the PDF export now contains 45,000 pages instead of 350 pages, as before the update.

To reproduce, click on this link and ask the Chrome print dialog, which will already show the number of pages.

My index.html not changed. This one also has this code:

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

This is still equivalent to the PDF export instructions in the latest update.

+7
source share
2 answers

As of show.js 3, there is a regression that cannot handle overlapping images with position: absolute well in PDF export.

0
source share

According to the PDF export instructions ,

Slides that are too high to fit on one page will expand to several pages.

When I opened the presentation in a Chromium-based browser, I saw quite a lot of free space between the slides. I think the problem may be somewhere here.

+2
source share

All Articles