dvcoolarun / web2pdf

🔄 CLI to convert Webpages to PDFs 🚀
825 stars 34 forks source link

Image is breaking when its actual height beyond the size of the page #8

Closed naivecoder786 closed 8 months ago

naivecoder786 commented 8 months ago

Current output: image

Expected output: image

Attaching the output pdf for reference which had breaking of image as a serious issue. print.pdf

naivecoder786 commented 8 months ago

To repro this issue use this web page link which was to be converted to pdf- https://alpha.learnersbucket.com/s/preview/courses/658bee23e4b0174a3cb6c294/articles/65927298e4b049a44b13a24e/get

dvcoolarun commented 8 months ago

Due to these particular rendering issues, I have not packaged this. You seem like a web developer.

In the main file, there is a css file where you can change the output however you want.

you specify a specific height for the images?

naivecoder786 commented 8 months ago

@dvcoolarun actually I did try that but I wasnt able to get it to work properly. Below are my changes, even after adding this the image seems to break image