hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.91k stars 16.65k forks source link

Convert presentation to PDF clarification #3394

Open TorkelE opened 1 year ago

TorkelE commented 1 year ago

Hello, I am trying to follow the instructions at https://revealjs.com/pdf-export/ to create a PDF version.

Exactly what does "Open your presentation with print-pdf included in the query string, for example: http://localhost:8000/?print-pdf. You can test this at revealjs.com/demo?print-pdf." mean? I have tried lots of stuff, and searched online, but do not understand.

I have tried to open my presentation (HTML file) in g chrome (on ubuntu) and then append "?print-pdf" at the end, e.g. "file:///home/user/Desktop/Presentations/presentation.html#/?print-pdf", but when I press enter it disappears and I just get "file:///home/user/Desktop/Presentations/presentation.html#/". I then try to follow the remaining instructions, but the presentation has problem:

emnachouchane commented 1 year ago

Did you try checking if the background color is set correctly in the reveal.Css stylesheet? Make sure that the background color is set to black:( background-color: black;)

libralibra commented 1 year ago

you don't need the # and / at the end of your URL. it should be *.html?print-pdf

for my case, I added a "↓PDF" link to the corner of my slides so that the user can click the link to generate PDF if they need to.