remark icon indicating copy to clipboard operation
remark copied to clipboard

16:9 for printing

Open hvisser opened this issue 9 years ago • 5 comments

I'm using remark for the first time and I like it very much, so thanks! The only issue I'm having is that generating a PDF for my presentation in 16:9 format doesn't quite work. The slides aren't filling the page in that case. I've tried both Chrome and Safari. What would be needed to support 16:9? Looking at the less file I can't really figure it out ;)

hvisser avatar Nov 05 '15 21:11 hvisser

+1

iliocatallo avatar Feb 06 '16 09:02 iliocatallo

Any workarounds? I did presentation in remark, and after finishing it I found that 16:9 don't work

agalitsyn avatar Mar 22 '16 07:03 agalitsyn

Found answer in https://github.com/gnab/remark/issues/86

var slideshow = remark.create({ ratio: "16:9" });

agalitsyn avatar Mar 22 '16 07:03 agalitsyn

Would be great to find the answer from #86 in the documentation/wiki.

dastrobu avatar Apr 01 '16 12:04 dastrobu

I had very large white margin when making the pdf export (using printing) for the 16:9 ratio (including with wkhtmltopdf)

For reference, this is what I used to solve this:

#   --bbox "<left> <bottom> <right> <top>"      
pdfcrop --bbox '80 160 540 418.75'  printed_pdf.pdf  output.pdf

(right-left)/(top-bottom) should match your ratio (in my case 16/9).

Alexander-Barth avatar May 23 '22 08:05 Alexander-Barth