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 89A6A200AED for ; Tue, 3 May 2016 20:54:24 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 886F11609F4; Tue, 3 May 2016 20:54:24 +0200 (CEST) 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 D123C1609A9 for ; Tue, 3 May 2016 20:54:23 +0200 (CEST) Received: (qmail 78436 invoked by uid 500); 3 May 2016 18:54: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 78424 invoked by uid 99); 3 May 2016 18:54:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 May 2016 18:54:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 13207C1C69 for ; Tue, 3 May 2016 18:54:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.39 X-Spam-Level: * X-Spam-Status: No, score=1.39 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, T_DKIM_INVALID=0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=jahewson.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id UYD9joGN_exd for ; Tue, 3 May 2016 18:54:17 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 42A3960E1E for ; Tue, 3 May 2016 18:54:17 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id g17so55615706wme.1 for ; Tue, 03 May 2016 11:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jahewson.com; s=google; h=from:message-id:mime-version:subject:date:references:to:in-reply-to; bh=NcET3mojcf9u7b3laW1wVYPflNvgcGf6jupgar6uSuI=; b=iHofW05Eghj1BVRqyQ2iTJR5aZWCbLXZ4m9XxvQBM7+TzypOGlWKlKHEwwEMhYIrt0 fxwYSX79nOarDsBHn5IC3JW0tc5BMB9X484YQKchQxi4xWAsx3izvIbuOkecUYDxhilu Gavax31ZDTJQzrayzVoBSU3apPdt7My0A7O+k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:mime-version:subject:date :references:to:in-reply-to; bh=NcET3mojcf9u7b3laW1wVYPflNvgcGf6jupgar6uSuI=; b=PQPDrBrIONIlj36XI5zBxLKOeura+uAb3PBGES+3FDcupvsjiNpFc9Nc844gmPfNOo UGRrBl0bmXAgZrbfgKfUd9WYrjlImksN3koTaB82k7Xl0S2cCoaM9TrDmYWuPU9hHEY3 2O17KgHGhhG5AD2wtcQzlUiaXFspcZutXR8Mm4v96gHveMGpJFcUUqxu9gOaI/KX8dLz 1wTBu0FBaFFx5S77HvN7+94afTGFcMUFRsQyzHq4nFTl1OgHQJlaeOVTBt01qUfZdO7L vimNSEPdpOmqe6XEc8NpNcakmWCkpUGW5xN8lp5qtbKGqWsQPOWhcbQb/BCterXBY99V ML6Q== X-Gm-Message-State: AOPr4FXD7w9BVSqU8dAtDwMbMQfJ2RYikHRA7vbVlh66T/aYCOJ+I5rvbu75I/Am9SKBwg== X-Received: by 10.194.246.138 with SMTP id xw10mr4223451wjc.99.1462301656762; Tue, 03 May 2016 11:54:16 -0700 (PDT) Received: from [10.0.1.12] (c-73-202-194-89.hsd1.ca.comcast.net. [73.202.194.89]) by smtp.gmail.com with ESMTPSA id i3sm576718wjx.30.2016.05.03.11.54.14 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 03 May 2016 11:54:16 -0700 (PDT) From: John Hewson Content-Type: multipart/alternative; boundary="Apple-Mail=_DBCE76F0-4CEC-4E2F-B757-E1E886D1425E" Message-Id: <5141CEF7-73E6-4460-8ADE-53ABAE5E1167@jahewson.com> Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Guidance on fonts in 2.0.1 on Linux Date: Tue, 3 May 2016 11:54:13 -0700 References: To: users@pdfbox.apache.org In-Reply-To: X-Mailer: Apple Mail (2.3124) archived-at: Tue, 03 May 2016 18:54:24 -0000 --Apple-Mail=_DBCE76F0-4CEC-4E2F-B757-E1E886D1425E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Jorg, Firstly, I=E2=80=99d recommend embedding TTF fonts in 2.0, using = PDType0Font. It works really well and supports Unicode. > We migrated to PDFBox 2.0.1 from 1.8 and have some issues with fonts. = We try not to embed them and trying to use default fonts if possible. >=20 > That worked well in 1.8 but in 2.0.1 we get some errors when running = on Amazon Linux - e.g. >=20 > PDType1Font.: Using fallback font LiberationSans for base font = Times-Roman > U+00B7 ('middot') is not available in this font's encoding: = WinAnsiEncoding Secondly, to answer your SO question, 2.0 is stricter about what = characters you can use with the built-in fonts, because they are the PDF = spec defines them as Type1 fonts which don=E2=80=99t support Unicode. = This is why you=E2=80=99re seeing an error about WinAnsiEncoding, = because that=E2=80=99s the encoding of Times-Roman in the PDF spec and = U+00B7 does not exist in that encoding. So even though the character is = available in the font, you can=E2=80=99t use it. This was permitted in = 1.8 but was technically creating =E2=80=9Cbad=E2=80=9D PDF files. The solution is to either create your own DictionaryEncoding and make = the PDFont use that (experts only, and may not produce consistent PDFs), = or to use PDType0Font which supports Unicode. =E2=80=94 John > On 1 May 2016, at 11:30, Jorg Janke wrote: >=20 > Hi guys, >=20 > We migrated to 2.0.1 from 1.8 and have some issues with fonts. We try = not > to embed them and trying to use default fonts. > Could you please check > = http://stackoverflow.com/questions/36970339/pdfbox-2-0-1-how-to-use-standa= rd-fonts-on-amazon-linux >=20 > Cheers, > Jorg >=20 >=20 > Jorg Janke - www.accorto.com - (650) 227-3271 --Apple-Mail=_DBCE76F0-4CEC-4E2F-B757-E1E886D1425E--