Solved

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

Posted on 2007-12-04
4
781 Views
Last Modified: 2011-10-03
Anyone, On the PDF, is it possible to have superscript like -  g/m3
0
Comment
Question by:Sgraceivey
  • 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
countHi challenge 25 84
What is Python programming? 3 64
recursion example 16 68
parse convert xml feed to text (python) 2 28
This article will show, step by step, how to integrate R code into a R Sweave document
A short article about problems I had with the new location API and permissions in Marshmallow
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now