Nope, only JPEGs and CCITT can be written. Reading of flate encoded images is supported but they cannot yet be saved directly as PNGs.
-- John > On 25 Feb 2014, at 15:23, "Tilman Hausherr (JIRA)" <[email protected]> wrote: > > > [ > https://issues.apache.org/jira/browse/PDFBOX-89?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13912242#comment-13912242 > ] > > Tilman Hausherr commented on PDFBOX-89: > --------------------------------------- > > Isn't this already there? > >> Support PNG Images >> ------------------ >> >> Key: PDFBOX-89 >> URL: https://issues.apache.org/jira/browse/PDFBOX-89 >> Project: PDFBox >> Issue Type: New Feature >> Components: Utilities, Writing >> >> [imported from SourceForge] >> http://sourceforge.net/tracker/index.php?group_id=78314&atid=552835&aid=1277052 >> Originally submitted by benlitchfield on 2005-08-30 19:37. >> Support Embedding/Extracting PNG images >> Can we utilize JAI for this. >> A comment from a PDF mailing list >> Actually, PNG->PDF with full transparency is pretty >> easy. >> PNG data is ARGB - you simply split that into an >> A block and an RGB block. The RGB data goes into >> the image XObject as Flate'd data - the A block as the >> SMask for the image... >> Ben Litchfield > > > > -- > This message was sent by Atlassian JIRA > (v6.1.5#6160)
