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
nbconvert reveal to pdf conversion ignores styling, prints only a single page. #3634
Comments
Hi, Anthony OK, first of all, I found a little bug... a missing slash in the CDN for the print-pdf stylesheet. I opened a PR to fix it: #3635 But this is not the main problem, just a typo when I added the possibility to change the url to find the reveal.js library... The main two problem are two:
With this fixes, you now can print your slideshow using FIrefox, I had some problem with Chromium... Probably is not the better solution, but it works ;-) Cheers and thanks for reporting... Damián. |
Awesome, thanks for taking a look at this Damián!
Wow! Thanks a ton. Unfortunately, I am not really able to regenerate the pdf that you see. Even with firefox, I was still only able to get the first slide: http://scopatz.s3.amazonaws.com/mozilla_localhost_8000_scopatz_mc13.reveal.pdf However, by playing around with the print options ("Print Background Color" and "Print Background Images") I was able to get the back ground color visible. (Also, what system are you on? I am on Ubuntu and half the time its native print manager pops up. I hope this isn't platform-dependent too...) Thanks for trying. A blog post would be super helpful. Any other advice? |
Anthony, did you merge my PR #3635 before making the attempt?
The complete line has to look like this one: https://github.com/scopatz/mc2013/blob/master/pres/scopatz_mc13.reveal.html#L21 Please, before making any other attempt in the conversion, test the reveal.html slideshow I PRed to your repository and try to print it, just to know if there any other problem besides the conversion itself. |
Hi @damianavila, You are right, I totally missed #3635 and when I add in the extra slash after the print, everything seems to work like you showed. Thanks! I agree that the firefox printing looks better than the chrome one (which doesn't seem to split the pages correctly). |
Added missing slash to print-pdf call. closes #3634
@scopatz the missing slash was merged, so with the current master you only need to use the makefile and the custom.css I PR-ed to you yesterday to make it work. Cheers. |
Thanks again for getting this in! |
Added missing slash to print-pdf call. closes ipython#3634
This is mostly for @damianavila since he asked me to report that I am having problems converting ipython-based reveal,js slideshows into PDFs.
I am using the latest IPython (62c0f6d) and I have a sample project that you can check out to play around with here: https://github.com/scopatz/mc2013
To reproduce:
Then in a browser (I am on Chrome 28) go to http://localhost:8000/scopatz_mc13.reveal.html?print-pdf
Lastly follow the instructions here to print to pdf https://github.com/hakimel/reveal.js/#pdf-export When I do this, I get a pdf that looks like http://scopatz.s3.amazonaws.com/localhost_8000_scopatz_mc13.reveal.pdf
This is clearly wrong, since it only has a single page, no background color, and the fonts aren't what they are in the browser. All of these problems seem related to the CSS in some way. Note that they still exist even when I use a default reveal theme, rather than my custom one. I hope this helps.
The text was updated successfully, but these errors were encountered: