orzih / mkdocs-with-pdf

Generate a single PDF file from MkDocs repository.
MIT License
325 stars 76 forks source link

Scaling the images to column-width on PDF #71

Closed canerbulduk closed 3 years ago

canerbulduk commented 3 years ago

Hi,

I'm trying to export mkdocs website as a PDF however I'm having issues scaling the images to the PDF's column width.

The images look just fine on the website, however, while rendering the PDF they are not scaled to column width as they scaled on the website.

Also, as you see, figure2 is missing on pdf while there is no visible issue regarding that figure. Both the figures are located in the same directory and both of them are called in the same way on markdown.

Website: image

PDF: image

Markdown: image

canerbulduk commented 3 years ago

The issue is fixed when removed the tables which are covering the images.

To fix the issue without removing the tables, the issue https://github.com/orzih/mkdocs-with-pdf/issues/53 should be checked.