From dev-return-59405-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Wed Nov 7 21:09:10 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B0B7C180649 for ; Wed, 7 Nov 2018 21:09:09 +0100 (CET) Received: (qmail 86522 invoked by uid 500); 7 Nov 2018 20:09:08 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 86511 invoked by uid 99); 7 Nov 2018 20:09:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2018 20:09:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 723E01A3A30 for ; Wed, 7 Nov 2018 20:09:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id vaDYtweVzJ2d for ; Wed, 7 Nov 2018 20:09:07 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 39C576238F for ; Wed, 7 Nov 2018 20:03:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5EA5FE1013 for ; Wed, 7 Nov 2018 20:03:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2AA9B266AB for ; Wed, 7 Nov 2018 20:03:00 +0000 (UTC) Date: Wed, 7 Nov 2018 20:03:00 +0000 (UTC) From: "Tilman Hausherr (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PDFBOX-4367) Error expected floating point number actual='18-5' 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/PDFBOX-4367?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166= 78715#comment-16678715 ]=20 Tilman Hausherr commented on PDFBOX-4367: ----------------------------------------- Glad to hear that... soon I'll add the option in ExtractText I mentioned, s= o don't close the issue. I just have to come up with a name that makes sens= e and isn't too long. > Error expected floating point number actual=3D'18-5' > -------------------------------------------------- > > Key: PDFBOX-4367 > URL: https://issues.apache.org/jira/browse/PDFBOX-4367 > Project: PDFBox > Issue Type: Bug > Components: Text extraction > Affects Versions: 2.0.12 > Environment: Mac OS X Sierra > Reporter: Peter Johnson > Priority: Minor > > Able to repeat with command line. =C2=A0Unfortunately, the only files tha= t repeat this are from a customer, and contain sensitive information. =C2= =A0The file opens without error in Acrobat Reader and Mac Preview. =C2=A0Th= e desired result is that any corrupt portions of the PDF are skipped, so th= at we can use what text is extractable. > Unfortunately, I still get an error when using the -force option. > We get the following stack trace: > {code:java} > C02V390UHTD6:Downloads pjohnson$ java -jar pdfbox-app-2.0.12.jar ExtractT= ext 16cccd9af5032a303774f7b87fb95076.pdf > Nov 02, 2018 10:04:54 AM org.apache.pdfbox.pdfparser.BaseParser parseCOSA= rray > WARNING: Corrupt object reference at offset 19727 > Exception in thread "main" java.io.IOException: Error expected floating p= oint number actual=3D'18-5' > at org.apache.pdfbox.cos.COSFloat.(COSFloat.java:78) > at org.apache.pdfbox.cos.COSNumber.get(COSNumber.java:110) > at org.apache.pdfbox.pdfparser.BaseParser.parseDirObject(BaseParser.java:= 947) > at org.apache.pdfbox.pdfparser.BaseParser.parseCOSArray(BaseParser.java:6= 31) > at org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamPa= rser.java:174) > at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators= (PDFStreamEngine.java:510) > at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStrea= mEngine.java:477) > at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamE= ngine.java:150) > at org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStre= amEngine.java:139) > at org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.jav= a:391) > at org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.ja= va:319) > at org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:= 266) > at org.apache.pdfbox.tools.ExtractText.startExtraction(ExtractText.java:2= 37) > at org.apache.pdfbox.tools.ExtractText.main(ExtractText.java:82) > at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:60) > Caused by: java.lang.NumberFormatException > at java.math.BigDecimal.(BigDecimal.java:494) > at java.math.BigDecimal.(BigDecimal.java:383) > at java.math.BigDecimal.(BigDecimal.java:806) > at org.apache.pdfbox.cos.COSFloat.(COSFloat.java:59) > ... 14 more > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org