Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--print produces empty output #117

Closed
slhck opened this issue Jun 12, 2017 · 12 comments
Closed

--print produces empty output #117

slhck opened this issue Jun 12, 2017 · 12 comments
Labels

Comments

@slhck
Copy link

slhck commented Jun 12, 2017

Running with phantomjs 2.1.1 on OS X and Linux, both exhibit the same problem.

$ cat test.md
# hello

# world

$ reveal-md test.md --print
Attempting to print "test.md" to filename "test.pdf" as PDF.
Make sure to have PhantomJS installed (and in your path).
Export PDF: Reading reveal.js config [1/4]
Export PDF: Preparing print layout [2/4]
Export PDF: Preparing pdf [3/4]
Export PDF: Writing file [4/4]
Export PDF: Finished successfully!

The output only contains the background color, nothing else:

image

@webpro
Copy link
Owner

webpro commented Jun 15, 2017

This seems to be related to the theme, I found that using a different theme renders a proper PDF:

reveal-md test.md --print --theme beige

I guess not all themes are compatible with the print styles. But it surprises me that the default theme now fails to render properly, as that is what's been tested all along. Also see #86 and #97 for related issues.

If anyone can shed a light on this, that would be very helpful.

@webpro webpro added the bug label Jun 15, 2017
@slhck
Copy link
Author

slhck commented Jun 16, 2017

Hm, even with --theme beige I get only one empty slide. And it's printed quite fast, meaning that it's not just styles, but apparently it doesn't even load or write any of the content.

I'm using PhantomJS 2.1.1 from Homebrew here.

I was able to successfully use decktape with a forked off version of PhantomJS to produce PDFs, which takes significantly longer for a few dozen slides.

@webpro
Copy link
Owner

webpro commented Jun 16, 2017

Does it help to update Node.js to v6.11.0 and re-install reveal-md? I've had some issues with Node v4 and early Node v6.x.

@slhck
Copy link
Author

slhck commented Jun 16, 2017

Umm, I'm on Node 8.0.0, actually.

@webpro
Copy link
Owner

webpro commented Jun 16, 2017

Not sure what exactly is going on, but I've just updated some dependencies for v0.3.3 and it seems to render slides in PDF for Node v8. Please let me know if it works for you.

@webpro webpro closed this as completed Jun 16, 2017
@slhck
Copy link
Author

slhck commented Jun 16, 2017

It worked, yes, thank you very much!

@ruippeixotog
Copy link

ruippeixotog commented Jun 20, 2017

I'm having the same problem with this presentation. I have all tools and dependencies on their latest versions:

❯ node -v
v8.1.2
❯ reveal-md --version
0.3.3
❯ phantomjs --version
2.1.1

Can you check if it happens with you too?

@webpro
Copy link
Owner

webpro commented Jun 21, 2017

Yes, I'm also only one empty slide in the PDF. I'll reopen, but still not sure what the actual cause is.

@webpro webpro reopened this Jun 21, 2017
@slhck
Copy link
Author

slhck commented Jun 21, 2017

I just tried to recompile the slides again and I also end up with an empty PDF, although it definitely used to work. The only thing I changed is that Homebrew upgraded me to Node 8.1.2 (from 8.0.0) in the meantime.

@breschke
Copy link

breschke commented Sep 8, 2017

I am also having this problem, and it seems to work on and off again. Any new insight since the issue was reopened?

> node -v
v8.4.0
> reveal-md --version
0.4.1
> phantomjs --version
2.1.1

@webpro
Copy link
Owner

webpro commented Sep 9, 2017

Sorry, but I'm actually never printing slides myself, so I'm not very interested in this. Happy to accept PRs!

@webpro
Copy link
Owner

webpro commented Nov 9, 2017

This seems to have been fixed in #144, so I'm just going to close this issue. Feel free to report any issues.

@webpro webpro closed this as completed Nov 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants