Open golubvladimir opened 2 years ago
I have this problem only on Windows.
I don't think you can set margins explicitly. However, if you apply a margin to the body like so:
body{
margin: 30px;
}
This will apply a 30px margin around the content inside the document.
It only adds the top margin on 1st page. How to do this at all page
I created project - https://github.com/golubvladimir/nestjs-generate-pdf
I want to create document with same header on all pages. I created header by element with id pageHeader. After I set height to 1px in options.
I don't know, how to set margin for all pages from header. Now it works only on first page.