pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: Setting up PDF font resources
Date Tue, 11 Sep 2012 04:43:08 GMT
Hi,

did you try the full path name? In addition there is a font mapping in the resources directory.

Maruan Sahyoun

Am 11.09.2012 um 01:10 schrieb Verlene Bonham <VBonham@lifetouch.com>:

> Thats what I started with --- nothing I try for the fontfile works.
> I had trouble getting version 1.7.1 loaded via MAVEN to eClipse so suspect
> something is still wrong with the install, dependencies or ENV variables.
> THe location of the resources.../ttf seems wrong but dunno how to fix that.
> Verlene
> 
> -----Original Message-----
> From: Maruan Sahyoun [mailto:sahyoun@fileaffairs.de] 
> Sent: Monday, September 10, 2012 3:17 PM
> To: users@pdfbox.apache.org
> Subject: Re: Setting up PDF font resources
> 
> did you try  the sample at org/apache/pdfbox/examples/pdmodel/HelloWorldTTF.java
> 
> Kind regards
> 
> Maruan Sahyoun
> 
> Am 11.09.2012 um 00:01 schrieb Verlene Bonham:
> 
>> Hi,
>> 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 
>> C:\Users\VBonham\.m2\repository\pdfbox\pdfbox\pdfbox-1.7.1-src\pdfbox\
>> src\main\resources\org\apache\pdfbox\resources\ttf
>> 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 1.7.1
>> 
>> SO....What folder does PDFbox use for its fonts and how do I fix the setup ?
>> 
>> Thanks,
>> Verlene
>> 
>> 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 
>> _____________________________________________________________________
> 
> 
> ______________________________________________________________________
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> _____________________________________________________________________

Mime
View raw message