You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Nick Westerly <de...@gmail.com> on 2020/04/10 02:38:12 UTC

Could not initialize PDType1Font

Hi all -

Using PDFBOX 2.0.5 in a java project. When it runs on our colleagues
computers in the US, it works just fine. We have a few colleagues in the
Phillipines, who we are getting this error from (below). This is on windows
10 64bit.

Is this simply from missing some critical / standard fonts most likely? I
had them try to download some windows 10 fonts (i.e. from this sketch site:
https://www.w7df.com/p/windows-10.html ) but that does not seem to help.

Any ideas would be appreciated! Unfortunately, as is normally the case, I
cannot provide the original document.

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.pdfbox.pdmodel.font.PDType1Font
at
org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:62)
at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
at
org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:179)
at
org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:70)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
at
org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
at technology.tabula.ObjectExtractor.extractPage(ObjectExtractor.java:27)
at technology.tabula.PageIterator.next(PageIterator.java:29)
at technology.tabula.ObjectExtractor.extract(ObjectExtractor.java:54)

Re: Could not initialize PDType1Font

Posted by Andreas Lehmkuehler <an...@lehmi.de>.
Hi,

sounds like fontbox is missing on the classpath due to the NoClassDefFoundError.

BTW, update your PDFBox version, the recent version is 2.0.19. 2.0.5 was 
released 3 years ago.

Andreas


Am 10.04.20 um 04:38 schrieb Nick Westerly:
> Hi all -
> 
> Using PDFBOX 2.0.5 in a java project. When it runs on our colleagues
> computers in the US, it works just fine. We have a few colleagues in the
> Phillipines, who we are getting this error from (below). This is on windows
> 10 64bit.
> 
> Is this simply from missing some critical / standard fonts most likely? I
> had them try to download some windows 10 fonts (i.e. from this sketch site:
> https://www.w7df.com/p/windows-10.html ) but that does not seem to help.
> 
> Any ideas would be appreciated! Unfortunately, as is normally the case, I
> cannot provide the original document.
> 
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.pdfbox.pdmodel.font.PDType1Font
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:62)
> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
> at
> org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:179)
> at
> org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:70)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
> at technology.tabula.ObjectExtractor.extractPage(ObjectExtractor.java:27)
> at technology.tabula.PageIterator.next(PageIterator.java:29)
> at technology.tabula.ObjectExtractor.extract(ObjectExtractor.java:54)
> 


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


Re: Could not initialize PDType1Font

Posted by Nick Westerly <de...@gmail.com>.
Okay - thank you all for your help - will look into this further.

On Fri, Apr 10, 2020 at 7:38 AM Tilman Hausherr <TH...@t-online.de>
wrote:

> Am 10.04.2020 um 15:30 schrieb Nathan Artz:
> > Is there a reason it would work on some computers but not others?
>
>
> Likely there IS a difference. Maybe several versions installed. Maybe
> old versions in the class path. Or version conflicts (maybe the project
> also uses PDFBox but a different version).
>
> Tilman
>
>
>
> >
> > On Fri, Apr 10, 2020, 5:00 AM Tilman Hausherr <TH...@t-online.de>
> wrote:
> >
> >> This is Tabula, so make sure you have all the dependencies that are
> >> required by that version.
> >>
> >> There are downloads with all dependencies:
> >> https://github.com/tabulapdf/tabula-java/releases
> >>
> >>
> >> Tilman
> >>
> >>
> >> Am 10.04.2020 um 04:38 schrieb Nick Westerly:
> >>> Hi all -
> >>>
> >>> Using PDFBOX 2.0.5 in a java project. When it runs on our colleagues
> >>> computers in the US, it works just fine. We have a few colleagues in
> the
> >>> Phillipines, who we are getting this error from (below). This is on
> >> windows
> >>> 10 64bit.
> >>>
> >>> Is this simply from missing some critical / standard fonts most
> likely? I
> >>> had them try to download some windows 10 fonts (i.e. from this sketch
> >> site:
> >>> https://www.w7df.com/p/windows-10.html ) but that does not seem to
> help.
> >>>
> >>> Any ideas would be appreciated! Unfortunately, as is normally the
> case, I
> >>> cannot provide the original document.
> >>>
> >>> java.lang.NoClassDefFoundError: Could not initialize class
> >>> org.apache.pdfbox.pdmodel.font.PDType1Font
> >>> at
> >>>
> >>
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:62)
> >>> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:179)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:70)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
> >>> at
> >>>
> >>
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
> >>> at
> technology.tabula.ObjectExtractor.extractPage(ObjectExtractor.java:27)
> >>> at technology.tabula.PageIterator.next(PageIterator.java:29)
> >>> at technology.tabula.ObjectExtractor.extract(ObjectExtractor.java:54)
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> >> For additional commands, e-mail: users-help@pdfbox.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>

Re: Could not initialize PDType1Font

Posted by Tilman Hausherr <TH...@t-online.de>.
Am 10.04.2020 um 15:30 schrieb Nathan Artz:
> Is there a reason it would work on some computers but not others?


Likely there IS a difference. Maybe several versions installed. Maybe 
old versions in the class path. Or version conflicts (maybe the project 
also uses PDFBox but a different version).

Tilman



>
> On Fri, Apr 10, 2020, 5:00 AM Tilman Hausherr <TH...@t-online.de> wrote:
>
>> This is Tabula, so make sure you have all the dependencies that are
>> required by that version.
>>
>> There are downloads with all dependencies:
>> https://github.com/tabulapdf/tabula-java/releases
>>
>>
>> Tilman
>>
>>
>> Am 10.04.2020 um 04:38 schrieb Nick Westerly:
>>> Hi all -
>>>
>>> Using PDFBOX 2.0.5 in a java project. When it runs on our colleagues
>>> computers in the US, it works just fine. We have a few colleagues in the
>>> Phillipines, who we are getting this error from (below). This is on
>> windows
>>> 10 64bit.
>>>
>>> Is this simply from missing some critical / standard fonts most likely? I
>>> had them try to download some windows 10 fonts (i.e. from this sketch
>> site:
>>> https://www.w7df.com/p/windows-10.html ) but that does not seem to help.
>>>
>>> Any ideas would be appreciated! Unfortunately, as is normally the case, I
>>> cannot provide the original document.
>>>
>>> java.lang.NoClassDefFoundError: Could not initialize class
>>> org.apache.pdfbox.pdmodel.font.PDType1Font
>>> at
>>>
>> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:62)
>>> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
>>> at
>>>
>> org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
>>> at
>>>
>> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
>>> at
>>>
>> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
>>> at
>>>
>> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
>>> at
>>>
>> org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:179)
>>> at
>>>
>> org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:70)
>>> at
>>>
>> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
>>> at
>>>
>> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
>>> at
>>>
>> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
>>> at
>>>
>> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
>>> at technology.tabula.ObjectExtractor.extractPage(ObjectExtractor.java:27)
>>> at technology.tabula.PageIterator.next(PageIterator.java:29)
>>> at technology.tabula.ObjectExtractor.extract(ObjectExtractor.java:54)
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
>> For additional commands, e-mail: users-help@pdfbox.apache.org
>>
>>


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


Re: Could not initialize PDType1Font

Posted by Nathan Artz <na...@gmail.com>.
Is there a reason it would work on some computers but not others?

On Fri, Apr 10, 2020, 5:00 AM Tilman Hausherr <TH...@t-online.de> wrote:

> This is Tabula, so make sure you have all the dependencies that are
> required by that version.
>
> There are downloads with all dependencies:
> https://github.com/tabulapdf/tabula-java/releases
>
>
> Tilman
>
>
> Am 10.04.2020 um 04:38 schrieb Nick Westerly:
> > Hi all -
> >
> > Using PDFBOX 2.0.5 in a java project. When it runs on our colleagues
> > computers in the US, it works just fine. We have a few colleagues in the
> > Phillipines, who we are getting this error from (below). This is on
> windows
> > 10 64bit.
> >
> > Is this simply from missing some critical / standard fonts most likely? I
> > had them try to download some windows 10 fonts (i.e. from this sketch
> site:
> > https://www.w7df.com/p/windows-10.html ) but that does not seem to help.
> >
> > Any ideas would be appreciated! Unfortunately, as is normally the case, I
> > cannot provide the original document.
> >
> > java.lang.NoClassDefFoundError: Could not initialize class
> > org.apache.pdfbox.pdmodel.font.PDType1Font
> > at
> >
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:62)
> > at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
> > at
> >
> org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
> > at
> >
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
> > at
> >
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
> > at
> >
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
> > at
> >
> org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:179)
> > at
> >
> org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:70)
> > at
> >
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
> > at
> >
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
> > at
> >
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
> > at
> >
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
> > at technology.tabula.ObjectExtractor.extractPage(ObjectExtractor.java:27)
> > at technology.tabula.PageIterator.next(PageIterator.java:29)
> > at technology.tabula.ObjectExtractor.extract(ObjectExtractor.java:54)
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>
>

Re: Could not initialize PDType1Font

Posted by Tilman Hausherr <TH...@t-online.de>.
This is Tabula, so make sure you have all the dependencies that are 
required by that version.

There are downloads with all dependencies:
https://github.com/tabulapdf/tabula-java/releases


Tilman


Am 10.04.2020 um 04:38 schrieb Nick Westerly:
> Hi all -
>
> Using PDFBOX 2.0.5 in a java project. When it runs on our colleagues
> computers in the US, it works just fine. We have a few colleagues in the
> Phillipines, who we are getting this error from (below). This is on windows
> 10 64bit.
>
> Is this simply from missing some critical / standard fonts most likely? I
> had them try to download some windows 10 fonts (i.e. from this sketch site:
> https://www.w7df.com/p/windows-10.html ) but that does not seem to help.
>
> Any ideas would be appreciated! Unfortunately, as is normally the case, I
> cannot provide the original document.
>
> java.lang.NoClassDefFoundError: Could not initialize class
> org.apache.pdfbox.pdmodel.font.PDType1Font
> at
> org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:62)
> at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:143)
> at
> org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:60)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.showForm(PDFStreamEngine.java:179)
> at
> org.apache.pdfbox.contentstream.operator.graphics.DrawObject.process(DrawObject.java:70)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:838)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:495)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:469)
> at
> org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:150)
> at technology.tabula.ObjectExtractor.extractPage(ObjectExtractor.java:27)
> at technology.tabula.PageIterator.next(PageIterator.java:29)
> at technology.tabula.ObjectExtractor.extract(ObjectExtractor.java:54)
>


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