cancel
Showing results for 
Search instead for 
Did you mean: 

Disable PDF Metadata

jeffreyman
Confirmed Champ
Confirmed Champ

We have added encryption on PDF file when importing into ACS. However, it shows the following error.

2021-03-18 00:00:18,171 WARN [org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter] [http-nio-8080-exec-6] Metadata extraction failed (turn on DEBUG for full error): Extracter: org.alfresco.repo.content.metadata.PdfBoxMetadataExtracter@31aa447 Content: ContentAccessor[ contentUrl=store://2021/3/18/0/0/a3babc45-ef23-4fe3-a6e7-aa83338cd6df.bin, mimetype=application/pdf, size=18483, encoding=UTF-8, locale=en_HK] Failure: Error: Header doesn't contain versioninfonull

How to disable this?

1 ACCEPTED ANSWER

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

You can disable automatic metadata extraction.

extracter.PDFBox.enabled=false
extracter.TikaAuto.enabled=false

View answer in original post

2 REPLIES 2

sufo
Star Contributor
Star Contributor

You can set loglevel to INFO on the class org.alfresco.repo.content.metadata.AbstractMappingMetadataExtracter, but you will not see other warnings from it.

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

You can disable automatic metadata extraction.

extracter.PDFBox.enabled=false
extracter.TikaAuto.enabled=false