On Tue, 18 Jul 2023 at 20:24, Sandro Mani <manisan...@gmail.com> wrote: > Interestingly, I had to comment out info.Filters, or I would get a blank > image (I suppose because it would be "double" flate decoded, as > FlateDecode is already default as you wrote?). >
I discovered a mistake in the intended semantics of PdfImageInfo. I had to change the Filters member to nullable<PdfFilterList>[1], so that when nullptr it will encode everything with FlateDecode (before and empty list would have stored everything uncompressed), and when set it will treat the input stream as it was encoded with the supplied filter list. This was the only possible behavior previously, meaning "info.Filters = {PoDoFo::PdfFilterType::FlateDecode}" would have assumed the input to be already FlateDecode compressed, which probably it was not as per your report. This also means that commenting that line in your code is just the right thing to do, even with last commit[1] applied. Regards, Francesco [1] https://github.com/podofo/podofo/commit/45e0dc4f0e2f5958d819b0c8d2400e532b6dc69c _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users