Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3309016
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T21:35:26+00:00 2026-05-17T21:35:26+00:00

I am using iText API to generate RTF using Java. The RTF file is

  • 0

I am using iText API to generate RTF using Java. The RTF file is generated fine but one requirement is adding a barcode. What i did is:

FontFactory.register("c:\\windows\\fonts\\FREE3OF9.ttf", "Free 3 of 9 Extended");
return FontFactory.getFont("Free 3 of 9 Extended",20, Font.NORMAL, Color.BLACK);

I tried loading other fonts; that was working fine, but it doesn’t work when I use the barcode font (FREE3OF9.ttf).

The RTF file is generated but the the “Font name” looks like “New” instead of “Free 3 of 9 Extended” in MS Word when I open it. When I select the words and choose the font name, the barcode appears fine.

I think there is a problem with Free 3 of 9 Extended Font.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T21:35:26+00:00Added an answer on May 17, 2026 at 9:35 pm

    Odd. I don’t really have The Answer, but I can certainly offer some advice.

    • Check the return value from getFont(...). It’s entirely possible that the problem is in registration, and you’re just getting back a default font. I don’t see why it’d be called “New”, but definitely worth checking.
    • If that’s not the problem, have a look at your raw RTF output. Is the font in question really “New” or is MS mangling it on the way in?
      • Check MS’s RTF output when you manually pick the font vs your own.
    • Get the iText source, step through it, see what’s wrong.

    The source link is to iText v2.1.7, the last version that supported RTF. The guy who worked on it vanished into the web some time prior to that, so we stopped supporting it with 5.0 (along with the licensing change, package rename, and so forth).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using iText to generate PDF invoices for a J2EE web application and
Are there any API/solution to generate PDF report from XML file data and definition.
I'm using iText for a bit of manipulating my PDFs through Java, and I'd
I'm using iText to generate PDF reports when I came across this issue, and
I'm creating a Java app that creates 4 PDF files using iText. On the
My group has been using the itext-sharp library and C#/.NET to generate custom, dynamic
I'm using iText to generate a PDF document that consists of several copies of
how can I get the bytes from an image generated using itext's barcode39 class
I'm signing PDF's using iText. I'm including a graphic in the signature. This works,
Using TortoiseSVN against VisualSVN I delete a source file that I should not have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.