Return-Path: Delivered-To: apmail-pdfbox-users-archive@www.apache.org Received: (qmail 94028 invoked from network); 10 Mar 2011 14:21:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Mar 2011 14:21:24 -0000 Received: (qmail 86708 invoked by uid 500); 10 Mar 2011 14:21:24 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 86679 invoked by uid 500); 10 Mar 2011 14:21:23 -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 86671 invoked by uid 99); 10 Mar 2011 14:21:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2011 14:21:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.68.5.9] (HELO relay00.pair.com) (209.68.5.9) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 10 Mar 2011 14:21:16 +0000 Received: (qmail 91234 invoked from network); 10 Mar 2011 14:20:53 -0000 Received: from 216.7.145.186 (HELO Bob-Swansons-MacBook-Pro-3.local) (216.7.145.186) by relay00.pair.com with SMTP; 10 Mar 2011 14:20:53 -0000 X-pair-Authenticated: 216.7.145.186 Message-ID: <4D78D96D.4070405@swansongrp.com> Date: Thu, 10 Mar 2011 10:00:13 -0400 From: Bob Swanson User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-Version: 1.0 To: users@pdfbox.apache.org Subject: re: TTF Font Contains Bad /Widths Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org >> Hello all, >> >> "The Font 'ArialMT' contains bad /Widths." (PDFBox 1.5) >> >> I get this error message in Adobe Reader when using the Arial TTF provided >> with Windows (XP). On the mailing list, I found the message below without an >> answer though. >> >> Has anybody found a solution for this in the meantime? >> >> Best Regards, >> Nat >> >> Subject:Adobe Reader Error When Using TrueType *Fonts*[image: >> permalink] >> From:Bob S.... (rd...@swansongrp.com)Date:Jul 7, 2010 2:29:05 pmList:* >> org.apache.pdfbox.users* >> >> I switched my project over to use TrueType *fonts*, and they do work. I'm >> using *the* "Arial" *fonts* that came with my Mac system. >> >> However, when Adobe Reader first brings up *the* resulting PDF file, it >> displays an error window indicating that "*The* *Font* 'Arial-BoldMT' * >> contains* *bad* /Widths". >> >> *The* *fonts* appear to display just fine. >> >> Any thoughts? That was my request for information. I can reproduce the problem with versions of PDFBox after 1.1.0. I tried to view the files on my wife's Windows 7 machine, and get the same warning errors in Adobe Reader, so at least the Adobe Reader does not depend on being on a Mac. Your message indicates that the TTF files from Windows cause the same message to appear. (No warning is thrown by the "Preview" program on the Mac, and the file is unreadable on my Kindle, not a big surprise.) I have two PDF files I created using the canned version of "org.apache.pdfbox.examples.pdmodel.HelloWorldTTF" that comes with the distribution. This process eliminated any possibility that my own PDF-creation software was causing the problem. I ran the same command line, using the 1.1.0 and 1.4.0 JAR files (and some versions in between). The file from 1.1.0 reads just fine, but those created by any JAR after 1.1.0 all cause the same warning error. (I have not been able to download 1.5.0 yet, but your experience points to the same issue). Should this be submitted as a bug report? Bob Swanson