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] [Reopened] (PDFBOX-4599) java.io.IOException: head is mandatory
Date Tue, 06 Aug 2019 16:17:00 GMT

     [ https://issues.apache.org/jira/browse/PDFBOX-4599?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tilman Hausherr reopened PDFBOX-4599:
-------------------------------------

> java.io.IOException: head is mandatory
> --------------------------------------
>
>                 Key: PDFBOX-4599
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4599
>             Project: PDFBox
>          Issue Type: Bug
>          Components: FontBox
>    Affects Versions: 2.0.2, 2.0.16
>            Reporter: recived
>            Priority: Major
>         Attachments: mayak_2018-11-28_095-p1.jpg, mayak_2018-11-28_095.pdf, mayak_2018-11-28_095.pdf.jpg
>
>
> The cover of the first page is not fully created. 
> {code:java}
> 2019-07-17 15:24:57,700 WARN org.apache.pdfbox.pdmodel.font.PDCIDFontType2 @ Could not
read embedded OTF for font FNTSBS+AllegroScript
> java.io.IOException: head is mandatory
> at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:182)
> at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:150)
> at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:79)
> at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:27)
> at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:106)
> at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:73)
> at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:109)
> at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:62)
> at org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:139)
> at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:192)
> at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:97)
> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
> at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:61)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:869)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:505)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:479)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:152)
> at org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStreamEngine.java:139)
> at org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:391)
> at org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:319)
> at org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:266)
> at org.dspace.app.mediafilter.PDFFilter.getDestinationStream(PDFFilter.java:110)
> at org.dspace.app.mediafilter.MediaFilterServiceImpl.processBitstream(MediaFilterServiceImpl.java:358)
> at org.dspace.app.mediafilter.MediaFilterServiceImpl.filterBitstream(MediaFilterServiceImpl.java:217)
> at org.dspace.app.mediafilter.MediaFilterServiceImpl.filterItem(MediaFilterServiceImpl.java:180)
> at org.dspace.app.mediafilter.MediaFilterServiceImpl.applyFiltersItem(MediaFilterServiceImpl.java:158)
> at org.dspace.app.mediafilter.MediaFilterCLITool.main(MediaFilterCLITool.java:315)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
> at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
>  
> 2019-07-17 15:24:56,522 WARN org.apache.pdfbox.pdmodel.font.FileSystemFontProvider @
New fonts found, font cache will be re-built
> 2019-07-17 15:24:56,523 WARN org.apache.pdfbox.pdmodel.font.FileSystemFontProvider @
Building on-disk font cache, this may take a while
> 2019-07-17 15:24:56,720 WARN org.apache.pdfbox.pdmodel.font.FileSystemFontProvider @
Finished building on-disk font cache, found 106 fonts
> 2019-07-17 15:24:56,724 WARN org.apache.pdfbox.pdmodel.font.PDCIDFontType2 @ Using fallback
font LiberationSans for CID-keyed TrueType font FNTSBS+Helios-Bold
> 2019-07-17 15:24:56,741 WARN org.apache.pdfbox.pdmodel.font.PDCIDFontType2 @ Could not
read embedded OTF for font FNTSBS+Helios
> java.io.IOException: head is mandatory
> at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:182)
> at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:150)
> at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:79)
> at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:27)
> at org.apache.fontbox.ttf.TTFParser.parse(TTFParser.java:106)
> at org.apache.fontbox.ttf.OTFParser.parse(OTFParser.java:73)
> at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:109)
> at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:62)
> at org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:139)
> at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:192)
> at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:97)
> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
> at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:61)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:869)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:505)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:479)
> at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:152)
> at org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStreamEngine.java:139)
> at org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:391)
> at org.apache.pdfbox.text.PDFTextStripper.processPages(PDFTextStripper.java:319)
> at org.apache.pdfbox.text.PDFTextStripper.writeText(PDFTextStripper.java:266)
> at org.dspace.app.mediafilter.PDFFilter.getDestinationStream(PDFFilter.java:110)
> at org.dspace.app.mediafilter.MediaFilterServiceImpl.processBitstream(MediaFilterServiceImpl.java:358)
> at org.dspace.app.mediafilter.MediaFilterServiceImpl.filterBitstream(MediaFilterServiceImpl.java:217)
> at org.dspace.app.mediafilter.MediaFilterServiceImpl.filterItem(MediaFilterServiceImpl.java:180)
> at org.dspace.app.mediafilter.MediaFilterServiceImpl.applyFiltersItem(MediaFilterServiceImpl.java:158)
> at org.dspace.app.mediafilter.MediaFilterCLITool.main(MediaFilterCLITool.java:315)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.dspace.app.launcher.ScriptLauncher.runOneCommand(ScriptLauncher.java:229)
> at org.dspace.app.launcher.ScriptLauncher.main(ScriptLauncher.java:81)
> {code}
>  



--
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


Mime
View raw message