I am currently stuck on the following problem: Generating a document with PDFBox I would like to include the box-generating characters, preferably of Courier New. For those of you, who shouldn't know what the bgcs are, here is a picture of them:
In my Java-Class I currently got the following lines.
contentStream.setFont(PDTrueTypeFont.loadTTF(doc, "pdf_content/cour.ttf") , 12);
contentStream.beginText();
contentStream.drawString("┼┌┐└┘│─┘├┤┬┴┼");
contentStream.endText();
Unfortunately, as one can see in the output, they result in some weird characters and not the desired bars.
Did anyone encounter the same problem or has any solution to this problem? I might also mention that printing characters like german "Umlaute" ("äöüß") works fine.
Thanks in advance!