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

  • SEARCH
  • Home
  • 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 8931029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:01:09+00:00 2026-06-15T09:01:09+00:00

Setup I’m using iText 5.3.0 and Fedora 17, testing with PDF readers llpp and

  • 0

Setup

I’m using iText 5.3.0 and Fedora 17, testing with PDF readers llpp and evince. My IDE is Eclipse Indigo r2. My terminal is urxvt with the same font as used in the PDF.

Problem

Other unicode characters show just fine. Listing 11.3 in the iText book shows just fine. But trying to get an X̲, X with an underline, like "X\u0332" won’t show up on a PDF. I can log the string to the terminal with System.out.println and it works just fine. Here’s an example of what I’m trying:

public static void main(String[] args) throws DocumentException, IOException {
  Document document = new Document(PageSize.LETTER);
  PdfWriter.getInstance(document, new FileOutputStream("fnord.pdf"));
  document.open();
  FontFactory.register("fonts/mplus-1mn-regular.ttf", "mplus");
  Font font = FontFactory.getFont(
    "mplus",
    BaseFont.IDENTITY_H,
    BaseFont.EMBEDDED,
    12
  );
  String s = "X\u0332";
  System.out.println(s);
  document.add(new Paragraph(s, font));
  document.close();
}

I found an ancient, possibly related, email from Paulo Soares saying “character combination must be done before presenting the text to iText”.

I’m not sure what this means, or how to do it, or if it’s still relevant.

Expected / actual

I expect: a PDF with an X with a line underneath the X, ie X̲.

I get: a PDF with an X, no line.

  • 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-06-15T09:01:10+00:00Added an answer on June 15, 2026 at 9:01 am

    It seems that my pdf viewers aren’t displaying right. I copied and pasted the text output from the pdf viewer, copied into my terminal (where I’ve verified this character(s) work), and see the X̲.

    Copy and pasting works in

    • llpp with mupdf version a606f714258677688c67e9561b87cc70f9e9b6b0
    • adobe reader 9.5.1

    But does not work in evince 3.4.0 (poppler 0.18.4). The copied text is just a plain X.

    So it seems that iText is not at fault.

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

Sidebar

Related Questions

Setup iMac 10.7.4, Eclipse Indigo, Pydev, Python 2.7 I’m trying to install the Tweepy
Setup OSX 10.7.4 Eclipse Indigo, Pydev, Tweepy-1.9 I thought this should be relatively simple
SETUP: Using Google Apps Script's UI (doGet) with tabPanel option. At the bottom of
Setup I am using custom Forms Authentication - all standard stuff. In the Login
Setup Mac OSX 10.6.7, Eclipse, Tomcat 1.6 I am trying to call a string
Setup OSX 10.7.4, Eclipse, Pydev, Python 2.7, Tweepy-1.9 Hey, I was originally trying to
Setup I am using Sparx Systems Enterprise Architect Professional edition 7.5 and MS PowerPoint.
Setup I have a VBScript for driving the stress testing of a web service.
Setup using a simple example: I've got 1 table ( Totals ) that holds
Setup: I am using JSPs and jQuery. There is a 'parent' page which holds

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.