Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F121E200D42 for ; Fri, 17 Nov 2017 17:09:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id EFF1E160C0A; Fri, 17 Nov 2017 16:09:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 532E9160BFB for ; Fri, 17 Nov 2017 17:09:53 +0100 (CET) Received: (qmail 23342 invoked by uid 500); 17 Nov 2017 16:09:52 -0000 Mailing-List: contact users-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@pdfbox.apache.org Delivered-To: mailing list users@pdfbox.apache.org Received: (qmail 23300 invoked by uid 99); 17 Nov 2017 16:09:52 -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; Fri, 17 Nov 2017 16:09:52 +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 140041A1327 for ; Fri, 17 Nov 2017 16:09:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.979 X-Spam-Level: X-Spam-Status: No, score=0.979 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Ml5CMHsxgdNd for ; Fri, 17 Nov 2017 16:09:48 +0000 (UTC) Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 7F5085F568 for ; Fri, 17 Nov 2017 16:09:48 +0000 (UTC) Received: from fwd22.aul.t-online.de (fwd22.aul.t-online.de [172.20.26.127]) by mailout02.t-online.de (Postfix) with SMTP id 6F4EB41BDA35 for ; Fri, 17 Nov 2017 17:09:41 +0100 (CET) Received: from [192.168.2.105] (r1-ZVTZ-8hvGp9k7G69RSD2whN8rEqboPVli7AWVBfpxdHQAyYjOFB4h2TNX+drZKf@[217.231.129.179]) by fwd22.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1eFjCz-4K5aFs0; Fri, 17 Nov 2017 17:09:37 +0100 Subject: Re: Embedded font problem To: users@pdfbox.apache.org References: <37daadec-5c3b-42a5-7c7a-22085d161fcf@t-online.de> From: Tilman Hausherr Message-ID: <5e61432a-1c6f-6dc4-6006-425b762f0cf9@t-online.de> Date: Fri, 17 Nov 2017 17:11:48 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-ID: r1-ZVTZ-8hvGp9k7G69RSD2whN8rEqboPVli7AWVBfpxdHQAyYjOFB4h2TNX+drZKf X-TOI-MSGID: b1f64fc3-e291-4e02-bf9c-78319a24d27e archived-at: Fri, 17 Nov 2017 16:09:54 -0000 I tried on several computers and it works fine and I'm not even getting any log output. There is no font "FEWLWR+Calibri" in your file. There is WYSTDV+Calibri, LMBRYT+Calibri-Bold, MOLOFZ+Calibri, YAYKNK+Calibri-BoldItalic, JJGKRY+Calibri-Italic, HEYKNJ+Calibri-Italic and ZSXJFZ+Calibri-Bold. Btw the exception is non-fatal. The embedded font is marked as damaged and PDFBox tries to find a substitute. Tilman Am 17.11.2017 um 08:40 schrieb lauri.laanti@heeros.com: > Hello, > > I am sorry, that was using the 2.0.7 version. > > The same error appears with 2.0.8 too: > > first a WARN: > > WARN org.apache.pdfbox.pdmodel.font.PDCIDFontType2.():140 - Could > not read embedded OTF for font FEWLWR+Calibri > > next the exception: > > java.io.EOFException > at > org.apache.fontbox.ttf.MemoryTTFDataStream.readUnsignedShort(MemoryTTFDataStream.java:120) > at > org.apache.fontbox.ttf.HorizontalMetricsTable.read(HorizontalMetricsTable.java:61) > at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:335) > at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:173) > at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:150) > at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:79) > at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:27) > at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:106) > at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:73) > at > org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:116) > at > org.apache.pdfbox.pdmodel.font.PDCIDFontType2.(PDCIDFontType2.java:69) > at > org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:125) > at org.apache.pdfbox.pdmodel.font.PDType0Font.(PDType0Font.java:136) > at > org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83) > at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143) > at > org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469) > at > org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150) > at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:203) > at > org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:145) > > > > yours, > > -Lauri > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org