Solved

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

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

Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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 fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

821 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