shelfio / chrome-aws-lambda-layer

58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli
MIT License
637 stars 45 forks source link

Space before "From" field for pdf that was result of conversion from html that was converted from email file #23

Closed LLDmitry closed 2 years ago

LLDmitry commented 4 years ago

We have a chain of conversion: msg to html (by GleamTech) ; html-to pdf (by chrome-aws-layer). Html is identical to msg, but in pdf we get empty space before the "From" field (the first row)

vladholubiev commented 2 years ago

This layer just embeds the Chrome.

If you got some weird formatting problem, it will most likely be reproduced locally with Chrome on your laptop.

Most likely it's fixed by custom CSS overrides or some Chrome settings you can look up within puppeteer docs.