mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -84,12 +84,19 @@ public class PdfBoxMetadataExtracter extends AbstractMappingMetadataExtracter
|
|||||||
putRawValue(KEY_TITLE, docInfo.getTitle(), rawProperties);
|
putRawValue(KEY_TITLE, docInfo.getTitle(), rawProperties);
|
||||||
putRawValue(KEY_SUBJECT, docInfo.getSubject(), rawProperties);
|
putRawValue(KEY_SUBJECT, docInfo.getSubject(), rawProperties);
|
||||||
|
|
||||||
|
try
|
||||||
|
{
|
||||||
Calendar created = docInfo.getCreationDate();
|
Calendar created = docInfo.getCreationDate();
|
||||||
if (created != null)
|
if (created != null)
|
||||||
{
|
{
|
||||||
putRawValue(KEY_CREATED, created.getTime(), rawProperties);
|
putRawValue(KEY_CREATED, created.getTime(), rawProperties);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch (IOException e)
|
||||||
|
{
|
||||||
|
// This sometimes fails because the date is a string: ETHREEOH-1936
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user