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,10 +84,17 @@ public class PdfBoxMetadataExtracter extends AbstractMappingMetadataExtracter
|
||||
putRawValue(KEY_TITLE, docInfo.getTitle(), rawProperties);
|
||||
putRawValue(KEY_SUBJECT, docInfo.getSubject(), rawProperties);
|
||||
|
||||
Calendar created = docInfo.getCreationDate();
|
||||
if (created != null)
|
||||
try
|
||||
{
|
||||
putRawValue(KEY_CREATED, created.getTime(), rawProperties);
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user