Closed brunetton closed 11 months ago
Sorry for taking so long to get to this. Unfortunately those border values are consumed by puppeteer and we don't really touch them. I'd suggest raising this with them if you think the values aren't popping out as they should be. I wish I could be more help here!
Hi, First of all: Thanks for this great tool ! It's exactly what I was looking for ! :heart:
I'm trying to adjust margins of a generated document but the margins I give are not respected. Here are used commands and measured left margins in mm:
mdpdf test.md
=> 21.9 (no problem here as default margins is 20, there's probably a little margin due to CSS)mdpdf test.md --border=20
=> 7.5mdpdf test.md --border=50
=> 15mdpdf test.md --border=75
=> 22mdpdf test.md --border=100
=> 29mdpdf test.md --border=150
=> 41The factor between asked border and effective border seems to be around 3.3, except for
--border=20
where it's around 2.6. This is quite strange and not really ideal to use ;)Steps to reproduce
create a
test.md
file containing:--border
optionsmdpdf 3.0.1
Thanks for your time