elliotblackburn / mdpdf

Markdown to PDF command line app with support for stylesheets
https://npmjs.com/package/mdpdf
Apache License 2.0
718 stars 48 forks source link

Margins are not respected (--border options) #162

Closed brunetton closed 11 months ago

brunetton commented 1 year ago

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:

The 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

mdpdf 3.0.1

Thanks for your time

elliotblackburn commented 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!