pdfbox-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tilman Hausherr (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (PDFBOX-4021) Font missing when building from source makes build fail
Date Wed, 03 Jan 2018 17:13:00 GMT

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

Tilman Hausherr edited comment on PDFBOX-4021 at 1/3/18 5:12 PM:
-----------------------------------------------------------------

[~kalaspuffar] please try with the updated code and tell whether it works now.


was (Author: tilman):
[~kalaspuffar] please try with the updated code and tell whether it works now.

> Font missing when building from source makes build fail
> -------------------------------------------------------
>
>                 Key: PDFBOX-4021
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4021
>             Project: PDFBox
>          Issue Type: Bug
>          Components: PDModel
>    Affects Versions: 2.0.8, 3.0.0 PDFBox
>            Reporter: Daniel Persson
>            Assignee: Tilman Hausherr
>            Priority: Minor
>             Fix For: 2.0.9, 3.0.0 PDFBox
>
>
> Downloaded and built trunk from source today and got a failing test due to missing Noto
font.
> ```
> 2017-11-23 08:19:58 ERROR org.apache.pdfbox.pdmodel.font.FileSystemFontProvider:661 -
Could not load font file: /usr/share/fonts/noto/NotoSansCoptic-Regular.ttf
> java.io.FileNotFoundException: /usr/share/fonts/noto/NotoSansCoptic-Regular.ttf (No such
file or directory)
>         at java.io.RandomAccessFile.open0(Native Method)
>         at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
>         at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
>         at org.apache.fontbox.ttf.BufferedRandomAccessFile.<init>(BufferedRandomAccessFile.java:88)
>         at org.apache.fontbox.ttf.RAFDataStream.<init>(RAFDataStream.java:63)
>         at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:84)
>         at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.readTrueTypeFont(FileSystemFontProvider.java:682)
>         at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.getTrueTypeFont(FileSystemFontProvider.java:650)
>         at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.access$200(FileSystemFontProvider.java:55)
>         at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider$FSFontInfo.getFont(FileSystemFontProvider.java:126)
>         at org.apache.pdfbox.pdmodel.font.FontMapperImpl.getCIDFont(FontMapperImpl.java:518)
>         at org.apache.pdfbox.pdmodel.font.PDCIDFontType0.<init>(PDCIDFontType0.java:128)
>         at org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:121)
>         at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:80)
>         at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
>         at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.getFonts(ResourcesValidationProcess.java:125)
>         at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validateFonts(ResourcesValidationProcess.java:94)
>         at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validate(ResourcesValidationProcess.java:77)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:57)
>         at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:169)
>         at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:84)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:57)
>         at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:69)
>         at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:57)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:122)
>         at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:163)
>         at org.apache.pdfbox.preflight.TestIsartorBavaria.validate(TestIsartorBavaria.java:190)
> ```
> ```
> validate[target/pdfs/Isartor testsuite/PDFA-1b/6.3 Fonts/6.3.4 Embedded font programs/isartor-6-3-4-t01-fail-c.pdf](org.apache.pdfbox.preflight.TestIsartorBavaria)
 Time elapsed: 0.025 sec  <<< ERROR!
> java.lang.NullPointerException: null
>         at org.apache.pdfbox.pdmodel.font.PDCIDFontType0.<init>(PDCIDFontType0.java:158)
>         at org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:121)
>         at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:80)
>         at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:83)
>         at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.getFonts(ResourcesValidationProcess.java:125)
>         at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validateFonts(ResourcesValidationProcess.java:94)
>         at org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess.validate(ResourcesValidationProcess.java:77)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:57)
>         at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validateResources(SinglePageValidationProcess.java:169)
>         at org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess.validate(SinglePageValidationProcess.java:84)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:57)
>         at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validatePage(PageTreeValidationProcess.java:69)
>         at org.apache.pdfbox.preflight.process.PageTreeValidationProcess.validate(PageTreeValidationProcess.java:57)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.callValidation(ContextHelper.java:84)
>         at org.apache.pdfbox.preflight.utils.ContextHelper.validateElement(ContextHelper.java:122)
>         at org.apache.pdfbox.preflight.PreflightDocument.validate(PreflightDocument.java:163)
>         at org.apache.pdfbox.preflight.TestIsartorBavaria.validate(TestIsartorBavaria.java:190)
> ```



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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


Mime
View raw message