You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Stefan Sauerer <St...@cas.de> on 2021/12/07 14:56:04 UTC

Blank page after conversion

Hello PDFBox-Team,

Currently we are facing some error while converting the linked PDF.
You can download the file from here https://wecloud.world/s/2gK6rYDtbgxx5ME Password: r!mDR%mJ5,

The result is just a blank page. There is also an exception:

[WARN] Could not read all expected parts of version >= 2, setting version to 1
java.io.EOFException: null
               at org.apache.fontbox.ttf.MemoryTTFDataStream.readSignedShort(MemoryTTFDataStream.java:138)
               at org.apache.fontbox.ttf.OS2WindowsMetricsTable.read(OS2WindowsMetricsTable.java:859)
               at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:361)
               at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:173)
               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:112)
               at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:65)
               at org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:139)
               at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:196)
               at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:97)
               at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
               ...

So we did some investigation & research on that, but unfortunately we were not able to solve this problem. Maybe you guys can help us with this.

We are using PDFBox
<dependency>
<groupId>org.apache.pdfbox</groupId>
<artifactId>pdfbox</artifactId>
               <version>2.0.24</version>
<dependency>

Thanks in advance & Kind regards from the CAS Campus

Stefan Sauerer

Software Engineer DevelopmentCenter SmartApp Factory

CAS Software AG· CAS-Weg 1 -5 · 76131 Karlsruhe, Germany · Phone: +49 721-9638-0
Successful relationships. www.cas.de/en<http://www.cas.de/en> · linkedin<http://www.linkedin.com/company/cas-software-ag>
Legals: http://www.cas.de/en/impressum.html

Executive board: Martin Hubschneider
Supervisory board: Dr. Dr. Jörg Maurer (chair) · Prof. Dr. Peter Lockemann · Kurt Sibold
Head Office: Karlsruhe · County Court Mannheim · Register of Companies Number: HRB 108751 ·
VAT Identification Number: DE14359314


Re: Blank page after conversion

Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,

I'm unable to reproduce this with PDFDebugger on windows. Is there more 
logging output? I wonder if PDFBox uses one of your local fonts and that 
one is broken.

Tilman

PS to anybody else: the "," is part of the password

Am 07.12.2021 um 15:56 schrieb Stefan Sauerer:
> Hello PDFBox-Team,
>
> Currently we are facing some error while converting the linked PDF.
> You can download the file from here https://wecloud.world/s/2gK6rYDtbgxx5ME Password: r!mDR%mJ5,
>
> The result is just a blank page. There is also an exception:
>
> [WARN] Could not read all expected parts of version >= 2, setting version to 1
> java.io.EOFException: null
>                 at org.apache.fontbox.ttf.MemoryTTFDataStream.readSignedShort(MemoryTTFDataStream.java:138)
>                 at org.apache.fontbox.ttf.OS2WindowsMetricsTable.read(OS2WindowsMetricsTable.java:859)
>                 at org.apache.fontbox.ttf.TrueTypeFont.readTable(TrueTypeFont.java:361)
>                 at org.apache.fontbox.ttf.TTFParser.parseTables(TTFParser.java:173)
>                 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:112)
>                 at org.apache.pdfbox.pdmodel.font.PDCIDFontType2.<init>(PDCIDFontType2.java:65)
>                 at org.apache.pdfbox.pdmodel.font.PDFontFactory.createDescendantFont(PDFontFactory.java:139)
>                 at org.apache.pdfbox.pdmodel.font.PDType0Font.<init>(PDType0Font.java:196)
>                 at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:97)
>                 at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146)
>                 ...
>
> So we did some investigation & research on that, but unfortunately we were not able to solve this problem. Maybe you guys can help us with this.
>
> We are using PDFBox
> <dependency>
> <groupId>org.apache.pdfbox</groupId>
> <artifactId>pdfbox</artifactId>
>                 <version>2.0.24</version>
> <dependency>
>
> Thanks in advance & Kind regards from the CAS Campus
>
> Stefan Sauerer
>
> Software Engineer DevelopmentCenter SmartApp Factory
>
> CAS Software AG· CAS-Weg 1 -5 · 76131 Karlsruhe, Germany · Phone: +49 721-9638-0
> Successful relationships. www.cas.de/en<http://www.cas.de/en> · linkedin<http://www.linkedin.com/company/cas-software-ag>
> Legals: http://www.cas.de/en/impressum.html
>
> Executive board: Martin Hubschneider
> Supervisory board: Dr. Dr. Jörg Maurer (chair) · Prof. Dr. Peter Lockemann · Kurt Sibold
> Head Office: Karlsruhe · County Court Mannheim · Register of Companies Number: HRB 108751 ·
> VAT Identification Number: DE14359314
>
>


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