From dev-return-4614-apmail-tika-dev-archive=tika.apache.org@tika.apache.org Thu Dec 09 02:08:22 2010 Return-Path: Delivered-To: apmail-tika-dev-archive@www.apache.org Received: (qmail 58466 invoked from network); 9 Dec 2010 02:08:22 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 02:08:22 -0000 Received: (qmail 37092 invoked by uid 500); 9 Dec 2010 02:08:22 -0000 Delivered-To: apmail-tika-dev-archive@tika.apache.org Received: (qmail 37031 invoked by uid 500); 9 Dec 2010 02:08:22 -0000 Mailing-List: contact dev-help@tika.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tika.apache.org Delivered-To: mailing list dev@tika.apache.org Received: (qmail 37023 invoked by uid 99); 9 Dec 2010 02:08:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 02:08:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 02:08:21 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id oB9281WB002908 for ; Thu, 9 Dec 2010 02:08:01 GMT Message-ID: <13797477.29711291860481269.JavaMail.jira@thor> Date: Wed, 8 Dec 2010 21:08:01 -0500 (EST) From: "Nick Burch (JIRA)" To: dev@tika.apache.org Subject: [jira] Resolved: (TIKA-389) Garbled metadata when dealing with encrypted PDF files. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TIKA-389?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] Nick Burch resolved TIKA-389. ----------------------------- Resolution: Fixed Fix Version/s: 0.9 Applied in r1043821, along with a unit test based on the sample document fr= om the PDFBox bug. > 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 > Fix For: 0.9 > > > The code exhibiting this issue is very simple: > InputStream input =3D new FileInputStream(file); > ContentHandler textHandler =3D new BodyContentHandler(); > tikaParser.parse(input, textHandler, metadata); > input.close(); > System.out.println(metadata); > The output: > title=3D?a???=E2=96=AC=C3=B7&=E2=96=BC??=E2=99=82?=C5=A2jK???=C5=BE?=E2= =86=91M?A=E2=86=92<=E2=95=90]1 > =3D=E2=95=AC\bK Author=3D=E2=95=90g?=E2=95=90?=E2=99=A6 Content-Type=3Dap= plication/pdf creator=3D?k?=E2=95=90?=E2=99=A6=C3=9D`;=C3=9D?)??/=C2=B6???= =C4=9A?3n > =C3=8E=E2=98=BC46=C3=8BO > Other than that, the extracted text is 100% correct. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.