Relative Content

Tag Archive for c++pdfwinapigdi

decompressed bitmap image fails to render properly for no obvious reason when using winGDI

I have been trying to make my own custom PDF editor & I have made a PDF parser that works absolutely fine for any PDF feature until images came up. First of all, the images in my PDFs are compressed with the standard DEFLATE/INFLATE algorithm & they all have the FlateDecode filter. the images, compressed & decompressed will have a lot of raw bytes that may be corrupted as a string or a char so I used a vector of uint8_t to be safe. here’s my decompression/inflation function :