I have a document with 4 pages, each having an image page .png background. There are 2 – 3 additional .png images of varying size on each page as well as a significant amount of text. The document also has 4 TT fonts beyond the built in fonts. I am using the open source version of ReportLab version 3.6.5 and Python version 3.8.
ReportLab generates a document file of 3.4 MB.
How can I *significantly* reduce the size of the PDF file within ReportLab?
Thanks,
Joe
> I have a document with 4 pages, each having an image page .png background.
> [...]
>
> ReportLab generates a document file of 3.4 MB.
>
> How can I *significantly* reduce the size of the PDF file within ReportLab?
Try converting those PNGs to JPGs: AFAICT, PDF has a specialized reader for
JPGs, while other formats are stored in base64/base85.
ciao, lele.
--
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
le...@metapensiero.it | -- Fortunato Depero, 1929.
_______________________________________________
reportlab-users mailing list
reportl...@lists2.reportlab.com
https://pairlist2.pair.net/mailman/listinfo/reportlab-users
Lele,
Changing the images to JPG did it.
Thank you for the suggestion.
Joe Dvorak