Re: [iText-questions] [iText] Problem in adding text watermark on a PDF

2006-11-27 Thread Patrick Kaegi
yes! you're right. the problem only exists if we use our special font. we do it like this: String normalFontName = Frutiger-Cn; String normalFontFile = externals/fonts/Ftc_.ttf; String boldFontName = Frutiger-BlackCn; String boldFontFile =

Re: [iText-questions] always space after bold phrase (even on a new line)

2006-11-27 Thread Patrick Kaegi
ok! me again! i think now we have the solution: it's the font size which makes the problem. try this code: public class PdfTest { public static void main(String[] args) { Document document = new Document(); try { PdfWriter.getInstance(document, new

[iText-questions] always space after bold phrase (even on a new line)

2006-11-24 Thread Patrick Kaegi
hello we have a problem with phrases in our document and we like to know if this is a known-bug or if we do something wrong. the problem is that, if the line ends with bold text there is always a space before the first word on the new line and this looks really bad! thanks a lot for any answer

Re: [iText-questions] always space after bold phrase (even on a new line)

2006-11-24 Thread Patrick Kaegi
the code looks like this: Paragraph paragraph = new Paragraph(); paragraph.add(new Phrase(foo , normalFont); paragraph.add(new Phrase(bold, boldFont); paragraph.add(new Phrase( bar, normalFont); document.add(paragraph); and the text looks like this if bar begins on a new line: foo bold bar