Solved

Anyone, On the PDF, is it possible to have superscript like -  g/m3 using PDF itext + java

Posted on 2007-12-04
4
801 Views
Last Modified: 2011-10-03
Anyone, On the PDF, is it possible to have superscript like -  g/m3
0
Comment
Question by:Sgraceivey
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 22

Expert Comment

by:blu
ID: 20411441
I am afraid you need to be a little more specific as to the question you are asking.
Can PDF print superscripts? Sure.
Can Java create output that is converted into PDF? Sure.
Can Java print out PDF files? Yes, but it may require some extra class files.

So, please tell use exactly what you are trying to do.
0
 

Author Comment

by:Sgraceivey
ID: 20416293
Thanks for your quick response. Now i understand from your responce that java class file can print superscripts into PDF files.

I work on java programming. i have several java class files which print output on PDF files. I have a new requirement to print superscript like -  g/m3 from java class file to PDF file. How do i construct supercript (g/m3) in a java class file. I appreciate if you can provide me snippet code.

Thanks in advance.
0
 
LVL 22

Accepted Solution

by:
blu earned 500 total points
ID: 20419273
That would depend on the class files you are using. Generally, the sub- or super-scripting is a font attribute. I would
guess that there is something in the class that allows you to set the fonts and their attributes. You just need to call that
class again, turning super-scripting on, print the single character and then turn it off again. Alternately, the class file may have a method explicitly for printing superscripts. Check the docs for the class files you are using to output to PDF.
0
 

Author Closing Comment

by:Sgraceivey
ID: 31412759
Thanks for providing the information.  We have not had the chance to try the solution but it put me in the right direction.

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about problems I had with the new location API and permissions in Marshmallow
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this second video of the Xpdf series, we discuss and demonstrate the PDFimages utility, which, in a single command, is able to extract all the images from a PDF file and save each one in a separate image file (PBM, PPM, or JPG). Download and inst…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question