hajareshyam / pdf-creator-node

This package is used to generate HTML to PDF in Nodejs
MIT License
238 stars 80 forks source link

There's no margin support for pdf #104

Open Abutahir12 opened 1 year ago

Abutahir12 commented 1 year ago

In the landscape mode, I was able to adjust the "mm" according to my needs, but no matter what try, the space on the top is fixed, it increases but it's not decreasing by certain pixels `format: "A4", orientation: "landscape",

border: {
    left: "5mm",
    right: "5mm",
    top: "0mm",
    bottom: "5mm",
},

height: "122mm",
width: "180mm"

these are the options that I have been trying, as you can see I have kept the top to 0mm, but it doesn't work at all, the content of the pdf is situated around 1.5 inch from the top edge, it's not decreasing. however it's increasing.

chaitu2chowdary commented 1 year ago

+1