I would like to embed images to my PDFs without loosing any quality (i.e. using PNG instead of JPEG compression).
I was able to achieve lossless embedding with RAW/uncompressed format but the file size is huge.
I am trying to understand what is being done
“under the hood” by PDFTron when adding images to the PDF that result in the
How do I embed image in PDF using lossless PNG (Flate) compression?
To embed image in PDF with Flate you need to specify the compression hint as follows: