Re: PDFBox No glyph for font error

2015-03-18 Thread Andrew Munn
Windows 8. I have acrobat reader installed if that matters. Thanks for the tip. I can do this: PDFont font = PDType0Font.load(document, new File("c:\\windows\\fonts\\arial.ttf"); and the doc is displayed fine in acrobat reader on the machine I used to create it but if I open it on my

Re: PDFBox No glyph for font error

2015-03-18 Thread Tilman Hausherr
Yes, see mentioned workaround in https://issues.apache.org/jira/browse/PDFBOX-2714 Maybe register in JIRA and add yourself as a watcher there, so you'll get updates. Btw what windows version are you using? Tilman Am 19.03.2015 um 00:03 schrieb Andrew Munn: I am testing out code like this on

PDFBox No glyph for font error

2015-03-18 Thread Andrew Munn
I am testing out code like this on Windows w/PDFbox 2.0.0: PDFont fontPlain = PDType1Font.TIMES_ROMAN; PDPageContentStream cos = new PDPageContentStream(document, page1); cos.setFont(fontPlain, 12); cos.drawString("Hello World"); cos.endText(); And I'm gett