[ 
https://issues.apache.org/jira/browse/TIKA-1494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14243921#comment-14243921
 ] 

Nick Burch commented on TIKA-1494:
----------------------------------

My hunch is that the place to add this support would be in 
TikaResource.fillMetadata

Could any of our JAXRS gurus confirm if that's where we'd need to be adding it?

If so, I guess we just need to put a few lines there that check for a password 
header, and pop a new PasswordProvider onto the Metadata object if so. Oh, and 
unit tests for it! :)

> JAXRS server: allow passing PDF password in the request
> -------------------------------------------------------
>
>                 Key: TIKA-1494
>                 URL: https://issues.apache.org/jira/browse/TIKA-1494
>             Project: Tika
>          Issue Type: New Feature
>          Components: server
>            Reporter: Peter Bowyer
>              Labels: encryption, pdf, server
>
> I have to extract content from encrypted PDFs. Setting the PDF password using 
> the TIKA_PASSWORD environment variable works, however it only allows for one 
> PDF password.
> It would be very useful to be able to pass the password in during the HTTP 
> request - as a header or by some other means. This way I can run a central 
> JAXRS server and extract content from all PDFs, rather than a separate server 
> for each department/group that has its own password.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to