pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Verlene Bonham <VBon...@lifetouch.com>
Subject Setting up PDF font resources
Date Mon, 10 Sep 2012 22:01:24 GMT
Hopefully this is the right forum for this question.
I have Windows 7 and am running PDFBox with a Java,Mavan,Eclipse config. Simple commands are
working so far.
However, can't get anything but the basic fonts to work even though there are several
TTF fonts in the C:\WINDOWS\FONTS  folder
and also in this folder
and also in some other workspace folders.
Other applications on the system find those fonts OK.
My pom.xml file looks OK and has dependencies for the jars for PDFbox, fontBox and jempBox

SO....What folder does PDFbox use for its fonts and how do I fix the setup ?


content = new PDPageContentStream(envDoc, envPage, false, false);
                content.setFont(fontHelv, 12); // default
                // fontArial = PDTrueTypeFont.loadTTF(envDoc, "ArialMT.ttf");
                fontBar39 = PDTrueTypeFont.loadTTF(envDoc, "3OF9_NEW.ttf");

None of the TTF fonts as above will load.
Verlene Joyce Bonham
Sr. Software Developer

This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message