You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Verlene Bonham <VB...@lifetouch.com> on 2012/09/11 00:01:24 UTC

Setting up PDF font resources

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
_____________________________________________________________________

Re: Setting up PDF font resources

Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
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 <VB...@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
> _____________________________________________________________________

Re: Setting up PDF font resources

Posted by Andreas Lehmkuehler <an...@lehmi.de>.
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


RE: Setting up PDF font resources

Posted by Verlene Bonham <VB...@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
_____________________________________________________________________

RE: Setting up PDF font resources

Posted by Verlene Bonham <VB...@lifetouch.com>.

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

Re: Setting up PDF font resources

Posted by Maruan Sahyoun <sa...@fileaffairs.de>.
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
> _____________________________________________________________________