On Tue, 2015-12-08 at 17:22 -0500, Jose Cortez wrote: > Is there any PNG export support? I was able to search the mailing > list, it looks like there’s PNG import support. I see PdfImage has > the GetSupportedFormats() which only has JPEG as an entry for this > PDF (though I’m certain that the source image was a PNG). I think it > would be great to be able to export images with alpha.
Hi, PdfImage::GetSupportedFormats() returns a list of image formats the PoDoFo library had been built with, not the image formats the currently opened PDF file was created with. Check what PdfImage::LoadFromPngData() does and reverse the process. The tricky part will also be to read the PdfDictionary and getting the right stream. If you've a working code for a JPEG images, then some parts can be reused here as well. Bye, zyx -- http://www.litePDF.cz i...@litepdf.cz ------------------------------------------------------------------------------ _______________________________________________ Podofo-users mailing list Podofo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/podofo-users