I'm getting an error when trying to print text created by Windows:
Servlet failed with an Exception
java.lang.IllegalArgumentException: U+000A ('controlLF') is not available
in this font Helvetica (generic: NimbusSanL-Regu) encoding:
WinAnsiEncoding
at org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:406)
at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:316)
at org.apache.pdfbox.pdmodel.font.PDFont.getStringWidth(PDFont.java:345)
...
As you know, Windows uses CRLF (0x0D0A) for end-of-line, but
PDType1Font.HELVETICA does not seem to recognize 0x0A. This seems like a
bug with the font.
Is there a fix for this? I'd rather not have to search all text to remove
0x0A.
--
"Hell hath no limits, nor is circumscrib'd In one self-place; but where we
are is hell, And where hell is, there must we ever be" --Christopher
Marlowe, *Doctor Faustus* (v. 121-24)