Hi,

using Tika server 2.5 in .net, when trying to parse pdf document which is
password protected getting an exeption of EncryptedDocumentException, so is
their any way to parse this document or send the password to tika server
for parsing?

Tried with adding non standard Http request header as below but still
having same issue.

var client=new HttpClient();
var stream=File.OpenRead(fileName);
var content=new MultipartFormDataContent
{{new StreamContent(stream) }};

HttpRequestMessage request=new HttpRequestMessage()
{
requestUri= new Uri("http://localhost:9998/rmeta/form";),
Method= HttpMethod.Post,
*Headers={{"X-Tika-Password*", "*Password123*"}},
content=content
};

HttpResponseMessage response= client.SendAsync(request).Result;

Also,
> Curl -T "C:\Test\myDocument.pdf" http://localhost:9998/rmeta/form --header
"X-Tika-Password:Password123"

Please assist.

Reply via email to