Class PNGConverter

java.lang.Object
org.apache.pdfbox.pdmodel.graphics.image.PNGConverter

final class PNGConverter extends Object
This factory tries to encode a PNG given as byte array into a PDImageXObject by directly coping the image data into the PDF streams without decoding/encoding and re-compressing the PNG data.

If this is for any reason not possible, the factory will return null. You must then encode the image by loading it and using the LosslessFactory.

The W3C PNG spec was used to implement this class: https://www.w3.org/TR/2003/REC-PNG-20031110