Basco, John X wrote:
>     I am experimenting with iText to create pdf documents that has 
> mathematical formula’s such as square root of (x^2 + y^2 )  etc. Could 
> you please point to the right direction. I have read your book iText in 
> action.

iText is not TeX.
In TeX you have operators to draw such formulas.
In iText you have to draw everything yourself.
the power2 in "x^2 + y^2" could be achieved with
superscript (chapter 4), and there's probably a
font with the V-shape to start the square root notation,
but I think you're better of writing some custom code
that draws the formula to a PdfTemplate and wrap this
PdfTemplate in an Image (this won't convert the formula
in a raster image, in this case Image is just the placeholder
of a snippet of PDF syntax).

Paulo has plans to create a new class replacing the
old Graphic class that would make it easier to produce
Graphics such as the equivalent of the <hr> tag and
maybe also the square root sign. But he's still working
on this.

br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to