pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkuehler <andr...@lehmi.de>
Subject Re: Setting up PDF font resources
Date Tue, 11 Sep 2012 06:01:16 GMT
Hi,

Am 11.09.2012 01:10, schrieb Verlene Bonham:
> Thats what I started with --- nothing I try for the fontfile works.
Can you be more specific? What exactly doesn't work? Do you get an error message?

> I had trouble getting version 1.7.1 loaded via MAVEN to eClipse so suspect
Again, can you be more specific?

> 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
>>

BR
Andreas Lehmkühler


Mime
View raw message