You need to copy the font to the iSeries IFS and then embed it in your PDF, for 
example:

public void addEmbeddedFont(String path)
{
 try {
  BaseFont bf = BaseFont.createFont(path,
    BaseFont.CP1252,
    BaseFont.EMBEDDED);
  this.baseFont = new Font(bf);
 } catch (Exception e) {
  e.printStackTrace();
 }
 this.baseFonts.add(this.baseFont);
}

When generating your PDF, you would call addEmbeddedFont passing it the path to 
the font file.

-----Original Message-----
From: bala.rajam...@leaseplan.com [mailto:bala.rajam...@leaseplan.com]
Sent: 27 February 2013 21:28
To: itext-questions@lists.sourceforge.net
Subject: [iText-questions] Loading specified Fonts on IBM iSeries


Hello,

I am trying to use iText on IBM AS400/iSeries environment as part of my Java 
application but unable to load the specified font but it is working on a 
Windows environment. Wondering if iText configuration can be customized to load 
the system font from a specific iSeries library or system path?

Thanks in advance,
Bala.


This message (including any attachments) is confidential and may be privileged. 
If you have received it by mistake please notify the sender by return e-mail 
and delete this message from your system. Any unauthorized use or dissemination 
of this message in whole or in part is strictly prohibited. Please note that 
e-mails are susceptible to change. LeasePlan Corporation N.V. (including its 
group companies) shall not be responsible nor liable for the proper and 
complete transmission of the information contained in this communication nor 
for any delay in its receipt or damage to your system. LeasePlan Corporation 
N.V. (or its group companies) does not guarantee that the integrity of this 
communication has been maintained nor that this communication is free of 
viruses, interceptions or interference.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free 
today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/ Please check the keywords list 
before you ask for examples: http://itextpdf.com/themes/keywords.php

NOTICE: The information in this electronic mail transmission is intended by 
CoralTree Systems Ltd for the use of the named individuals or entity to which 
it is directed and may contain information that is privileged or otherwise 
confidential. If you have received this electronic mail transmission in error, 
please delete it from your system without copying or forwarding it, and notify 
the sender of the error by reply email or by telephone, so that the sender's 
address records can be corrected.



--------------------------------------------------------------------------------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference 
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples: 
http://itextpdf.com/themes/keywords.php

Reply via email to