NishilSB / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 1 forks source link

PNG error "Missing palette in current picture" #373

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If a PNG file is embedded in the PDF and the PNG uses a palette (indexed 
color), alivepdf may throw an exception in PNGImage.as

This is because of a bug in PNGImage.as at line 74:
          stream.readBytes(palBytes, stream.position, n);

This should be:
          stream.readBytes(palBytes, 0, n);

Original issue reported on code.google.com by cgauth...@gmail.com on 16 Jan 2015 at 5:57

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r292.

Original comment by cgauth...@gmail.com on 28 Feb 2015 at 1:19