Return-Path: X-Original-To: apmail-pdfbox-users-archive@www.apache.org Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61F4917F95 for ; Thu, 26 Mar 2015 18:28:33 +0000 (UTC) Received: (qmail 10273 invoked by uid 500); 26 Mar 2015 18:28:33 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 10247 invoked by uid 500); 26 Mar 2015 18:28:33 -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 10228 invoked by uid 99); 26 Mar 2015 18:28:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 18:28:32 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.25.134.83] (HELO mailout07.t-online.de) (194.25.134.83) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Mar 2015 18:28:26 +0000 Received: from fwd39.aul.t-online.de (fwd39.aul.t-online.de [172.20.27.138]) by mailout07.t-online.de (Postfix) with SMTP id 8352861EEA6 for ; Thu, 26 Mar 2015 19:28:04 +0100 (CET) Received: from [192.168.2.102] (X7euuwZUwhVUCWVCfS+whG-P1B85zkA8RJyhIsL3qWFO7q45ZvZdFHwD-ymYJKggM-@[217.231.156.133]) by fwd39.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-SHA encrypted) esmtp id 1YbCVd-3O7Z2G0; Thu, 26 Mar 2015 19:28:01 +0100 Message-ID: <55144FD9.5080602@t-online.de> Date: Thu, 26 Mar 2015 19:28:41 +0100 From: Tilman Hausherr User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: users@pdfbox.apache.org Subject: Re: pdfbox warnings References: <5514329F.2090803@t-online.de> <551446D8.6090200@t-online.de> In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-ID: X7euuwZUwhVUCWVCfS+whG-P1B85zkA8RJyhIsL3qWFO7q45ZvZdFHwD-ymYJKggM- X-TOI-MSGID: 8c82afb3-42da-46d0-8f55-1a3a5464377e X-Virus-Checked: Checked by ClamAV on apache.org Maybe the ttf and the type1 versions of the font have different encodings? Re "set the pdfbox fallback" no; what I did to test ideas, was to mess with the substitutes map in ExternalFonts.java Tilman Am 26.03.2015 um 19:10 schrieb Eric Douglas: > I want it to use embedded fonts, but it appears to be looking for installed > fonts for the check mark on an iText editable check box field, so I tried > installing ZapfDingbats.ttf. > > Now it just gets this log > org.apache.pdfbox.rendering.font.Type1Glyph2D getPathForCharacterCode > WARNING: No glyph for 52 (.notdef) in font ZapfDingbats > > Now it doesn't log "Using fallback font" so I don't know what it's doing. > I can only guess iText is also using a fallback font which is apparently > not available to pdfbox? > Is there a way I can set the pdfbox fallback font for the > renderPageToGraphics? > > On Thu, Mar 26, 2015 at 1:50 PM, Tilman Hausherr > wrote: > >> It doesn't work with the ttf font for some reason. I can only tell that it >> works for me with the type1 file. >> >> Tilman >> >> Am 26.03.2015 um 18:41 schrieb Eric Douglas: >> >> I don't know where the fallback font comes from but it doesn't work. If I >>> view the PDF in Abode Reader it has an editable checkbox with a check mark >>> in it. The image rendered by pdfbox is just an empty box. >>> I am using pdfbox 2.0.0 from a trunk. >>> I can upload a small sample PDF that shows this error if it helps. >>> I have a ZapfDingbats.ttf file but I can't see any way to embed that for >>> the editable checkbox. I'm creating the PDF using iText. >>> If I view the PDF in Adobe Reader and check Properties, on the Fonts tab >>> it >>> shows >>> ZapfDingbats >>> Type: Type 1 >>> Encoding: Built-in >>> Actual Font: AdobePiStd >>> Actual Font Type: Type 1 >>> My normal fonts for text that properly embedded which render fine with >>> this >>> trunk show as >>> LucidaSans-Typewriter (Embedded Subset) >>> Type: TrueType >>> Encoding: Custom >>> >>> On Thu, Mar 26, 2015 at 12:23 PM, Tilman Hausherr >>> wrote: >>> >>> Am 26.03.2015 um 14:16 schrieb Eric Douglas: >>>> When I call the PDFRenderer renderPageToGraphics method I get warnings >>>> in >>>> >>>>> my log. >>>>> Is there a fix for these? >>>>> >>>>> org.apache.pdfbox.pdmodel.font.PDType1Font >>>>> WARNING: Using fallback font ArialMT for ZapfDingbats >>>>> org.apache.pdfbox.rendering.font.Type1Glyph2D getPathForCharacterCode >>>>> WARNING: No glyph for 52 (.notdef) in font ZapfDingbats >>>>> org.apache.pdfbox.pdmodel.font.PDType1Font >>>>> WARNING: Using fallback font ArialMT for ZapfDingbats >>>>> >>>>> >>>>> Yes, buy a ZapfDingbats type 1 font and copy it into your font >>>> directory. >>>> Or maybe you already have it, then the file is named "ZD______.PFB". >>>> License restrictions may apply. >>>> >>>> Tilman >>>> >>>> PS: alwyays mention the version (in your case "trunk" or "2.0") >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >>>> For additional commands, e-mail: users-help@pdfbox.apache.org >>>> >>>> >>>> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org >> For additional commands, e-mail: users-help@pdfbox.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org