Daniel Persson created PDFBOX-4021:
--------------------------------------

             Summary: Building from source missing dependency
                 Key: PDFBOX-4021
                 URL: https://issues.apache.org/jira/browse/PDFBOX-4021
             Project: PDFBox
          Issue Type: Improvement
          Components: Documentation
            Reporter: Daniel Persson
            Priority: Minor


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-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to