Further to ETHREEOH-1936: Make PDF metadata extraction ignore date conversion error

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14071 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2009-04-23 14:10:36 +00:00
parent 4462069f68
commit 04765bb281

View File

@@ -84,12 +84,19 @@ public class PdfBoxMetadataExtracter extends AbstractMappingMetadataExtracter
putRawValue(KEY_TITLE, docInfo.getTitle(), rawProperties);
putRawValue(KEY_SUBJECT, docInfo.getSubject(), rawProperties);
try
{
Calendar created = docInfo.getCreationDate();
if (created != null)
{
putRawValue(KEY_CREATED, created.getTime(), rawProperties);
}
}
catch (IOException e)
{
// This sometimes fails because the date is a string: ETHREEOH-1936
}
}
}
finally
{