[iText-questions] FontFactory.getRegisteredFamilies()

2006-02-18 Thread ddccpp ...
Hello! I'am trying to let the user select the font and style from a menu to generate a pdf file. I found a great fontchooser by the SUN. Then I read the tutorial by iText: http://itextdocs.lowagie.com/tutorial/fonts/getting/index.html#files The SUN's fontchooser uses a code like this:

[iText-questions] absolute positioning

2005-08-08 Thread ddccpp ...
Hi! I'm trying to absolute positioning objects. I read the examples, but i have problems. Example: I want to print a line, 22 mm from the left side of the page. 1mm = 2.83 pixel, so it's 62,26 = 62 pixel I use this function: cb.showTextAligned(PdfContentByte.ALIGN_LEFT, (String) mezok.element

[iText-questions] tahoma 8 in doc is diff. as in pdf

2005-07-30 Thread ddccpp ...
Hi, I wrote the following code: import java.lang.*; import java.io.*; import java.io.File; import java.util.Vector; import com.lowagie.text.*; import com.lowagie.text.pdf.PdfWriter; import com.lowagie.text.pdf.BaseFont; import com.lowagie.text.pdf.PdfContentByte; import com.lowagie.text.Ima