You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Richard Kwasnicki <rk...@avantgarde-labs.de.INVALID> on 2025/01/30 10:26:55 UTC
[ISSUE] Problems reading Type1 Fonts
Hey there,
Im using Apache PDFBox for a while, right now in Version 3.0.3 but also with previous Versions I have a Bunch of Errors loading some Fonts. One example i provided here.
It says: Can't read the embedded Type1 font ZSQJQL+GuardianSans-Light_00
java.io.IOException: Found Token[kind=NAME, text=def] but expected begin at org.apache.fontbox.type1.Type1Parser.read(Type1Parser.java:893) at org.apache.fontbox.type1.Type1Parser.readSimpleDict(Type1Parser.java:326) at org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:136) at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:63) at org.apache.fontbox.type1.Type1Font.createWithSegments(Type1Font.java:85) at org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:243) at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:140) at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:170)
Best, Richard
Richard Kwasnicki
Softwareentwickler
Telefon: +49 351 215 908 34
E-Mail: rkwasnicki@avantgarde-labs.de
Website<https://avantgarde-labs.com/> · LinkedIn<https://www.linkedin.com/company/avantgarde-labs-gmbh/> · Datenschutzbestimmungen<https://avantgarde-labs.com/de/datenschutzbestimmungen/>
Avantgarde Labs GmbH · Theresienstr. 9 · 01097 Dresden
Geschäftsführung: Robert Glaß, Torsten Hartmann, Sandy Lucka, Sven Rega
Sitz Dresden · Amtsgericht Dresden · HRB 31215 · USt-ID DE283937395
Avantgarde Labs · Wir lieben Entwicklung.
AW: [ISSUE] Problems reading Type1 Fonts
Posted by Richard Kwasnicki <rk...@avantgarde-labs.de.INVALID>.
Great, thanks a lot, i added some more examples and filed https://issues.apache.org/jira/browse/PDFBOX-5942
Richard Kwasnicki
Softwareentwickler
Telefon: +49 351 215 908 34
E-Mail: rkwasnicki@avantgarde-labs.de
Website<https://avantgarde-labs.com/> · LinkedIn<https://www.linkedin.com/company/avantgarde-labs-gmbh/> · Datenschutzbestimmungen<https://avantgarde-labs.com/de/datenschutzbestimmungen/>
Avantgarde Labs GmbH · Theresienstr. 9 · 01097 Dresden
Geschäftsführung: Robert Glaß, Torsten Hartmann, Sandy Lucka, Sven Rega
Sitz Dresden · Amtsgericht Dresden · HRB 31215 · USt-ID DE283937395
Avantgarde Labs · Wir lieben Entwicklung.
________________________________
Von: Tilman Hausherr <TH...@t-online.de>
Gesendet: Donnerstag, 30. Januar 2025 11:41
An: users@pdfbox.apache.org <us...@pdfbox.apache.org>
Betreff: Re: [ISSUE] Problems reading Type1 Fonts
[Sie erhalten nicht häufig E-Mails von thausherr@t-online.de. Weitere Informationen, warum dies wichtig ist, finden Sie unter https://aka.ms/LearnAboutSenderIdentification ]
Hi,
I've approved your JIRA registration, please attach the file there, that
doesn't work on the mailing list.
Either the font is broken, or that part of the type1 font uses a code we
don't support (in theory we would have to support postscript in full,
but we support only a small part).
I can analyse your font because I run a PDFBox version that saves the
problematic part on my disk.
Tilman
On 30.01.2025 11:26, Richard Kwasnicki wrote:
> Hey there,
>
> Im using Apache PDFBox for a while, right now in Version 3.0.3 but
> also with previous Versions I have a Bunch of Errors loading some
> Fonts. One example i provided here.
>
> It says: Can't read the embedded Type1 font ZSQJQL+GuardianSans-Light_00
>
> java.io.IOException: Found Token[kind=NAME, text=def] but expected
> begin at
> org.apache.fontbox.type1.Type1Parser.read(Type1Parser.java:893) at
> org.apache.fontbox.type1.Type1Parser.readSimpleDict(Type1Parser.java:326)
> at
> org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:136)
> at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:63) at
> org.apache.fontbox.type1.Type1Font.createWithSegments(Type1Font.java:85)
> at
> org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:243)
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:140)
> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:170)
>
> Best, Richard
>
> Richard Kwasnicki
> Softwareentwickler
> Telefon: +49 351 215 908 34
> E-Mail: rkwasnicki@avantgarde-labs.de
> Website <https://avantgarde-labs.com/> · LinkedIn
> <https://www.linkedin.com/company/avantgarde-labs-gmbh/> ·
> Datenschutzbestimmungen
> <https://avantgarde-labs.com/de/datenschutzbestimmungen/>
> Avantgarde Labs GmbH · Theresienstr. 9 · 01097 Dresden
> Geschäftsführung: Robert Glaß, Torsten Hartmann, Sandy Lucka, Sven Rega
> Sitz Dresden · Amtsgericht Dresden · HRB 31215 · USt-ID DE283937395
> *Avantgarde Labs* · Wir lieben Entwicklung.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail:users-help@pdfbox.apache.org
Re: [ISSUE] Problems reading Type1 Fonts
Posted by Tilman Hausherr <TH...@t-online.de>.
Hi,
I've approved your JIRA registration, please attach the file there, that
doesn't work on the mailing list.
Either the font is broken, or that part of the type1 font uses a code we
don't support (in theory we would have to support postscript in full,
but we support only a small part).
I can analyse your font because I run a PDFBox version that saves the
problematic part on my disk.
Tilman
On 30.01.2025 11:26, Richard Kwasnicki wrote:
> Hey there,
>
> Im using Apache PDFBox for a while, right now in Version 3.0.3 but
> also with previous Versions I have a Bunch of Errors loading some
> Fonts. One example i provided here.
>
> It says: Can't read the embedded Type1 font ZSQJQL+GuardianSans-Light_00
>
> java.io.IOException: Found Token[kind=NAME, text=def] but expected
> begin at
> org.apache.fontbox.type1.Type1Parser.read(Type1Parser.java:893) at
> org.apache.fontbox.type1.Type1Parser.readSimpleDict(Type1Parser.java:326)
> at
> org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:136)
> at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:63) at
> org.apache.fontbox.type1.Type1Font.createWithSegments(Type1Font.java:85)
> at
> org.apache.pdfbox.pdmodel.font.PDType1Font.<init>(PDType1Font.java:243)
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:140)
> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:170)
>
> Best, Richard
>
> Richard Kwasnicki
> Softwareentwickler
> Telefon: +49 351 215 908 34
> E-Mail: rkwasnicki@avantgarde-labs.de
> Website <https://avantgarde-labs.com/> · LinkedIn
> <https://www.linkedin.com/company/avantgarde-labs-gmbh/> ·
> Datenschutzbestimmungen
> <https://avantgarde-labs.com/de/datenschutzbestimmungen/>
> Avantgarde Labs GmbH · Theresienstr. 9 · 01097 Dresden
> Geschäftsführung: Robert Glaß, Torsten Hartmann, Sandy Lucka, Sven Rega
> Sitz Dresden · Amtsgericht Dresden · HRB 31215 · USt-ID DE283937395
> *Avantgarde Labs* · Wir lieben Entwicklung.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail:users-help@pdfbox.apache.org