Am 04.03.2020 um 20:41 schrieb [email protected]:
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?


The best would be to call stripPage().

The examples with a "main" are stand-alone. They are not part of the core pdfbox, and they were not written with the thought of being extended. Although you're of course welcome to do whatever you want - which carries risks :-)

Tilman






On Wed, Mar 4, 2020 at 2:10 PM Tilman Hausherr <[email protected]>
wrote:

Am 04.03.2020 um 19:03 schrieb [email protected]:
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: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to