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

Michel Tremblay commented on TIKA-389:
--------------------------------------

I have the same problem here using the command line utility.

Text extraction is perfect, but metadata extraction return something like :

Author  oauq(ÜXƄ X‡+üD‹–ŶNFðzÀï…#cc:¼ŸÝL˺›plÑÐ{Ê
Content-Length  33087
Content-Type    application/pdf
Keywords        cd|m>ې֍èI7‚nÏVÁ×ϽJ[¿‚nÍò—ž'|*iì–ÈŽ œGäÕ4È?
creator ckiw9ÉĔ±ÉzW•`ØPÍςõE¿•}ŽÃ.
producer        ckiw9ÉĔ¥äOngÑGŸ×”êàÀ'ùïˆ5|/
resourceName    liste_plans_eau_algues_bleu_vert.pdf
title   nahl>ˆÔђ Lv•eΉÐÉ¥^±„bÇõ
….juiý‰Á®ÉCèÛÜ4ô"~
xmpTPg  NPages: 4

This happens with encrypted files (not password protected).

> Garbled metadata when dealing with encrypted PDF files.
> -------------------------------------------------------
>
>                 Key: TIKA-389
>                 URL: https://issues.apache.org/jira/browse/TIKA-389
>             Project: Tika
>          Issue Type: Bug
>          Components: metadata, parser
>    Affects Versions: 0.6
>         Environment: Windows 7 64-bit
>            Reporter: Gabriel Miklos
>            Priority: Minor
>
> The code exhibiting this issue is very simple:
>         InputStream input = new FileInputStream(file);
>         ContentHandler textHandler = new BodyContentHandler();
>         tikaParser.parse(input, textHandler, metadata);
>         input.close();
>         System.out.println(metadata);
> The output:
> title=?a???▬÷&▼??♂?ŢjK???ž?↑M?A→<═]1
> =╬\bK Author=═g?═?♦ Content-Type=application/pdf 
> creator=?k?═?♦Ý`;Ý?)??/¶???Ě?3n
> Î☼46ËO
> Other than that, the extracted text is 100% correct.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to