mkdocs-with-pdf icon indicating copy to clipboard operation
mkdocs-with-pdf copied to clipboard

Reduce PDF size

Open hmsdoc opened this issue 4 years ago • 3 comments

Compared to the mkdocs-pdf-export-plugin I've noticed that the mkdocs-with-pdf plugin generates much larger PDF files. In my test project (which consists of over 170 pages in size A4) this resulted in a file that was about 3 times the size.

Is there any way to control the PDF output size? Maybe by allowing to reduce the image size (different compression settings) via a configuration parameter?

hmsdoc avatar Oct 21 '21 09:10 hmsdoc

Same here. PDF size generated with VS Code Extension: 4.2 MB PDF size generated with mkdocs-with-pdf: 16.9 MB

Would be great to have the possibility to reduce the file size.

SusanneKrause avatar Dec 13 '21 10:12 SusanneKrause

Do you include images multiple times (like logos in the header / footer)? Depending on how they are handled, they might be included multiple times in the resulting PDF which could result in this size difference.

pohlt avatar Feb 10 '22 16:02 pohlt

@pohlt: No, the images used are all different. Header and footer consist of text only.

hmsdoc avatar May 17 '23 07:05 hmsdoc