You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Philip Helger (JIRA)" <ji...@apache.org> on 2015/12/23 11:32:46 UTC

[jira] [Comment Edited] (PDFBOX-3162) IllegalStateException in TTFSubsetter

    [ https://issues.apache.org/jira/browse/PDFBOX-3162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15069469#comment-15069469 ] 

Philip Helger edited comment on PDFBOX-3162 at 12/23/15 10:32 AM:
------------------------------------------------------------------

I've tried to track this problem down and it seems hard to verify. While testing on Windows 7 it was not possible to reproduce this problem even when creating more than 10.000 PDFs using the same logic. I've tested both with and without attachments to a PDF.
The problem only occurs on a Linux machine:

3.0.101-65-default #1 SMP Mon Sep 7 19:21:52 UTC 2015 (bef9feb) x86_64 x86_64 x86_64 GNU/Linux

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)



was (Author: phax):
I've tried to track this problem down and it seems hard to verify. While testing on Windows 7 it was not possible to reproduce this problem even when creating more than 10.000 PDFs using the same logic.
The problem only occurs on a Linux machine:

3.0.101-65-default #1 SMP Mon Sep 7 19:21:52 UTC 2015 (bef9feb) x86_64 x86_64 x86_64 GNU/Linux

java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)


> IllegalStateException in TTFSubsetter
> -------------------------------------
>
>                 Key: PDFBOX-3162
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-3162
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.0
>         Environment: 2.0.0-RC2
>            Reporter: Philip Helger
>
> Hi encountered a rare exception with an empty TTF subset:
> {code}
> ==> [1] caused by java.lang.IllegalStateException: subset is empty
> 1.: org.apache.fontbox.ttf.TTFSubsetter.writeToStream(TTFSubsetter.java:921)
> 2.: org.apache.pdfbox.pdmodel.font.TrueTypeEmbedder.subset(TrueTypeEmbedder.java:304)
> 3.: org.apache.pdfbox.pdmodel.font.PDType0Font.subset(PDType0Font.java:162)
> 4.: org.apache.pdfbox.pdmodel.PDDocument.save(PDDocument.java:1102)
> 5.: com.helger.pdflayout.PageLayoutPDF.renderTo(PageLayoutPDF.java:276)
> {code}
> Unfortunately I don't know yet what was causing the problem, but I will provide you with more details on Monday (if necessary).
> If there is nothing to subset - I think the call should simply be ignored???
> Or maybe this is a problem because of the "uni" name bug (in 2.0.0-RC2) I reopened lately?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org