[reportlab-users] Reducing PDF File Size

Lele Gaifax lele at metapensiero.it
Wed Mar 23 03:13:50 EDT 2022


Joseph Dvorak <joseph.dvorak at cambiumassessment.com> writes:

> 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.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.



More information about the reportlab-users mailing list