Created attachment 27881 [details] Sample doc HPSFPropertiesExtractor reports the following summary information property for the Word file that has never been printed: PID_LASTPRINTED = Mon Jan 01 03:00:00 MSK 1601 This file was created by MS Word 6.0/95.
The issue is that a last printed date has been set in your file, just with what I guess to be a default date Can you try fetching the value yourself from HPSF, and see what gets stored? (I'd guess at something like 0 or -1)
All properties from the file returned by HPSFPropertiesExtractor: 1 = 65001 PID_TITLE = Document 6.1 PID_SUBJECT = Test 6.1 PID_AUTHOR = Author 6.1 PID_KEYWORDS = Word 6.1 PID_COMMENTS = Note 6.1 PID_TEMPLATE = D:\PROGRA~1\MICROS~3\OFFICE11\TEMPLATE\NORMAL.DOT PID_LASTAUTHOR = Гвоздицин Александр свет Геннадьевич PID_REVNUMBER = 3 PID_EDITTIME = Mon Jan 01 03:03:00 MSK 1601 PID_LASTPRINTED = Mon Jan 01 03:00:00 MSK 1601 PID_CREATE_DTM = Tue Mar 23 20:07:00 MSK 2010 PID_LASTSAVE_DTM = Tue Mar 23 20:19:00 MSK 2010 PID_CODEPAGE = 65001 What the default date do you mean? The file contains valid creation date. The file never been printed so printed date should be absent or null/empty, I think. MS Word reported the following values on Properties-Statistics tab: Created: Tuesday, March 23, 2010 9:07:00 PM Modified: Tuesday, November 01, 2011 11:01:04 AM Accessed: Tuesday, November 01, 2011 11:01:04 AM Printed: <empty>
added test file to corpus - r1793599
Created attachment 34991 [details] Screenshot of Office 2016 properties dialog
Added a helper method in org.apache.poi.hpsf.Filetime.isUndefined() via r1795123 Furthermore adapted handling in Property.toString() to handle those cases