If flipAT is only initialized in stripPage then the issue might be that I am not running DrawPrintTextLocations standalone, so the main function is never called. I'm extending DrawPrintTextLocations and calling writeText during a process similar to stripPage. It seems I would have to call stripPage instead to initialize flipAT or initialize it myself?
On Wed, Mar 4, 2020 at 2:10 PM Tilman Hausherr <thaush...@t-online.de> wrote: > Am 04.03.2020 um 19:03 schrieb jd9...@rit.edu: > > I tried again with a true type font which should parse as PDCIDFontType2, > > and receive > > java.lang.NullPointerException > > at > > > org.apache.pdfbox.examples.util.DrawPrintTextLocations.showGlyph(DrawPrintTextLocations.java:132) > > ... > > > > which takes me to line 83 : cyanShape = > > this.flipAT.createTransformedShape(cyanShape); > > > This would mean that flipAT is null. However flipAT is initialized when > stripPage() is called. ??? > > Tilman > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org > For additional commands, e-mail: users-h...@pdfbox.apache.org > >