boxable icon indicating copy to clipboard operation
boxable copied to clipboard

NoSuchFieldError: HELVETICA

Open rachidlaborantin opened this issue 3 years ago • 4 comments

Hi, thanks for your projects it's useful and amazing. It will help me But I have an exception when I try to create a cell from Row.create class. It says, NoSuchFieldError: HELVETICA

Hope your reply

rachidlaborantin avatar Aug 12 '22 15:08 rachidlaborantin

I think I know where do this exception coming. You used an old version of PdfBox where the default font HELVETICA is in PDTypeFont1 class But in the new version that I'm currently using, it was moved to another class cause I searched it the previous class I didn't found

I found it in Standard14Font.fontname.HELVETICA

I think that you should update your library

Thanks

rachidlaborantin avatar Aug 12 '22 20:08 rachidlaborantin

You used an old version of PdfBox

Which version of boxable are you using? Version 1.7.0 was just released.

johnmanko avatar Aug 14 '22 03:08 johnmanko

I have implemented it two days ago thus it's the latest version I use But your library don't use latest versions of PdfBox

Another issue is that, I want to change the cells border color. I want to keep the line border but change the color The borders you gave is dashed and dotted and I don't want it

rachidlaborantin avatar Aug 14 '22 19:08 rachidlaborantin

It's when I used old version of PdfBox which is 2.2... that it worked But for last 3.0.0 version it doesn't

rachidlaborantin avatar Aug 14 '22 19:08 rachidlaborantin

The problem with NoSuchFieldError: HELVETICA when using pdfbox 3.0.0 is fixed by pull-request https://github.com/dhorions/boxable/pull/270.

sz-liva avatar Sep 08 '23 07:09 sz-liva