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 3165217801 for ; Wed, 22 Apr 2015 02:49:50 +0000 (UTC) Received: (qmail 60973 invoked by uid 500); 22 Apr 2015 02:49:49 -0000 Delivered-To: apmail-pdfbox-users-archive@pdfbox.apache.org Received: (qmail 60951 invoked by uid 500); 22 Apr 2015 02:49:49 -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 60940 invoked by uid 99); 22 Apr 2015 02:49:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 02:49:49 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: message received from 54.76.25.247 which is an MX secondary for users@pdfbox.apache.org) Received: from [54.76.25.247] (HELO mx1-eu-west.apache.org) (54.76.25.247) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Apr 2015 02:49:22 +0000 Received: from ref.nmedia.net (ref.nmedia.net [204.80.187.146]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTP id F3F4725F10 for ; Wed, 22 Apr 2015 02:49:20 +0000 (UTC) Received: by ref.nmedia.net (Postfix, from userid 1022) id 6607448F441; Tue, 21 Apr 2015 19:49:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by ref.nmedia.net (Postfix) with ESMTP id 6572848F41F for ; Tue, 21 Apr 2015 19:49:19 -0700 (PDT) Date: Tue, 21 Apr 2015 19:49:19 -0700 (PDT) From: Andrew Munn To: users@pdfbox.apache.org Subject: Windows font error Message-ID: User-Agent: Alpine 2.20 (BSO 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org I am adding some text to a PDF and when I open it in acrobat viewer I get two errors: "An error exists on this page. Acrobat may not display the page correctly. Please contact the person who created teh PDF document to correct the problem" and a couple secs later: "Cannot find or create the font 'AAAAVG+ArielMT'. Some character may not display or print correctly." And the characters are replaced with little round dots. I am running the latest 2.0.0 snapshot. Code is: File f1 = new File("C:\\windows\\fonts\\arial.ttf"); font = PDType0Font.load(document, f1); PDPageContentStream cos = new PDPageContentStream(document, p, true, true); cos.showText("my text"); Other fonts either do the same thing (lsans.ttf,times.ttf) or give the error about the missing glyph. If I render that page as a PNG and save it the font appears correctly. Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org For additional commands, e-mail: users-help@pdfbox.apache.org