From dev-return-64821-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Tue Aug 13 03:42:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 2B94C180637 for ; Tue, 13 Aug 2019 05:42:02 +0200 (CEST) Received: (qmail 40287 invoked by uid 500); 13 Aug 2019 03:42:01 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 40264 invoked by uid 99); 13 Aug 2019 03:42:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Aug 2019 03:42:01 +0000 Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 81698E2FB5 for ; Tue, 13 Aug 2019 03:42:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 363342667B for ; Tue, 13 Aug 2019 03:42:00 +0000 (UTC) Date: Tue, 13 Aug 2019 03:42:00 +0000 (UTC) From: "Tilman Hausherr (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (PDFBOX-4545) PdfRenderer fails to render subsetted font MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-4545?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D168= 39550#comment-16839550 ]=20 Tilman Hausherr edited comment on PDFBOX-4545 at 8/13/19 3:41 AM: ------------------------------------------------------------------ I intend to close this as "won't do". I wanted to do this yesterday but sle= pt over this. Your use case is valid, but IMHO the optimization is more imp= ortant for people who create a large amount of PDF files, e.g. for an tailo= red mass mailing. What happened when you tried to render an unsaved PDF? I made a test and it= worked, although there were warnings. was (Author: tilman): I intend to close this as "won't do. I wanted to do this yesterday but slep= t over this. Your use case is valid, but IMHO the optimization is more impo= rtant for people who create a large amount of PDF files, e.g. for an tailor= ed mass mailing. What happened when you tried to render an unsaved PDF? I made a test and it= worked, although there were warnings. > PdfRenderer fails to render subsetted font > ------------------------------------------ > > Key: PDFBOX-4545 > URL: https://issues.apache.org/jira/browse/PDFBOX-4545 > Project: PDFBox > Issue Type: Bug > Components: PDModel, Rendering > Affects Versions: 2.0.15 > Reporter: Jason Kantz > Priority: Minor > Attachments: embedder.patch > > > In 2.0.3, TrueTypeEmbedder initializes FONT_FILE2 with the full font (1) = and then writes the subset later on save (2) (3). > In 2.0.15 TrueTypeEmbedder now only initializes FONT_FILE2 if !embeddedSu= bset (4). > This results in PDFRenderer failing to find and use the intended font whe= n using a PDDocument that has never been saved. > Attached patch restores the original behavior to work around the issue. > (1) https://apache.googlesource.com/pdfbox/+/refs/tags/2.0.3/pdfbox/src/m= ain/java/org/apache/pdfbox/pdmodel/font/TrueTypeEmbedder.java#82 > (2) https://apache.googlesource.com/pdfbox/+/refs/tags/2.0.3/pdfbox/src/m= ain/java/org/apache/pdfbox/pdmodel/PDDocument.java#1128 > (3) https://apache.googlesource.com/pdfbox/+/refs/tags/2.0.3/pdfbox/src/m= ain/java/org/apache/pdfbox/pdmodel/font/TrueTypeEmbedder.java#100 > (4) [https://apache.googlesource.com/pdfbox/+/refs/tags/2.0.15/pdfbox/src= /main/java/org/apache/pdfbox/pdmodel/font/TrueTypeEmbedder.java#77] > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.14#76016) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org