Solved

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

Posted on 2007-12-04
4
782 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The Adobe PDF proprietary file format is recognized as secure and formulated. But these PDF files are also prone to corruption and any external threat like virus attacks, improper storage can hit PDF file integrity.This type of damages can make cruc…
A short article about problems I had with the new location API and permissions in Marshmallow
In this first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…

910 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

22 Experts available now in Live!

Get 1:1 Help Now