You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/03/17 18:35:44 UTC

[jira] [Created] (PDFBOX-1989) Save LZW and other encoded PDImageXObject resources

Tilman Hausherr created PDFBOX-1989:
---------------------------------------

             Summary: Save LZW and other encoded PDImageXObject resources
                 Key: PDFBOX-1989
                 URL: https://issues.apache.org/jira/browse/PDFBOX-1989
             Project: PDFBox
          Issue Type: Improvement
          Components: PDModel
    Affects Versions: 2.0.0
            Reporter: Tilman Hausherr
            Assignee: Tilman Hausherr
            Priority: Minor
             Fix For: 2.0.0


The "logo" image of the file from PDFBOX-1147.png isn't extracted because PDImageXObject.getSuffix() returns null. Changing getSuffix() so that it returns png brings us a correct file.

With some other images, e.g. the raw_image_demo.pdf file, getSuffix() brings an NPE when getPDStream().getFilters() returns null. This happens with images that are uncompressed. Returning "png" for this case also brings us a nice image.



--
This message was sent by Atlassian JIRA
(v6.2#6252)