Bug 59717 - Provide getThumbnail method on POIXMLDocument or POIXMLProperties, to get the Thumbnail (where exists) for OOXML documents
Summary: Provide getThumbnail method on POIXMLDocument or POIXMLProperties, to get the...
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: OPC (show other bugs)
Version: 3.15-dev
Hardware: PC Linux
: P2 enhancement (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-17 15:12 UTC by Nick Burch
Modified: 2016-06-21 14:28 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Burch 2016-06-17 15:12:42 UTC
For OLE2 documents, it's possible to fetch the document thumbnail (where generated + stored) via the HPSF properties: https://poi.apache.org/apidocs/org/apache/poi/hpsf/SummaryInformation.html#getThumbnail%28%29

OOXML documents can have a similar thumbnail, details for extracting it are given in http://stackoverflow.com/a/37876661/685641 . It would be good to add a similar getThumbnail method to either POIXMLProperties or POIXMLDocument, whichever seems most suitable
Comment 1 Nick Burch 2016-06-21 14:28:04 UTC
Support added in r1749528, also including set support too