[iText-questions] Adding page count to PDF

2008-07-01 Thread dirty-mg
Hello, I generate a PDF document with lots of data. Here is some sample code: String docName = Tools.get_tmp_path()+System.currentTimeMillis()+".pdf"; PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(docName)); writer.setPageEvent(new PdfPageEventHelper() { public voi

[iText-questions] line distance in rtf

2008-06-27 Thread dirty-mg
Now I use Paragraph instead of Phrase in my cells and I do not set the leading. That is my solution ;-) thanks Marcus - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just ab

[iText-questions] line distance in rtf document

2008-06-26 Thread dirty-mg
Hello, here is some example code for my problem: com.lowagie.text.Document document = new com.lowagie.text.Document(); String doc1 = "RtfWriter.rtf"; String doc2 = "RtfWriter2.rtf"; com.lowagie.text.r

Re: [iText-questions] line distance in RTF document

2008-06-24 Thread dirty-mg
The document type I create is RTF. In itext 1.4.4 I use the class RtfWriter and in iText 2.1.x the class RtfWriter2. That is the only difference I suppose. - Original Message - From: "Howard Shank" <[EMAIL PROTECTED]> To: "Post all your questions about iText here" Sent: Tuesday, June 2

Re: [iText-questions] line distance in RTF document

2008-06-24 Thread dirty-mg
Hello, has anyone tried my example? The problem is the distance between two lines that are separated by "\n". in itext 1.4.4 everything is normal but in itext 2.1.x the distance is about 16pt. best regards Marcus - Original Message - From: <[EMAIL PROTECTED]> To: "Post all your questi

[iText-questions] line distance in RTF document

2008-06-23 Thread dirty-mg
Hello, here an example: Table table = new Table(1); Cell cell = new Cell(new Phrase("texttexttext\ntexttexttext\ntexttexttext", FontFactory.getFont("Arial", 10, com.lowagie.text.Font.NORMAL))); cell.setHor

[iText-questions] line distance in RTF document

2008-06-23 Thread dirty-mg
Hello, I generate a RTF document with iText 2.1.2u. I create a table and add many cells to it. When a cell contains a "\n" iText does not generate a normal line distance but a distince liek this: at least 16pt. What can I do to get a normal line distance? best regards Marcus Germany ---

Re: [iText-questions] Helvetica in PDF becomes Arial

2007-12-11 Thread dirty-mg
Thanks Paulo, but why is it possible to use Helvecita in Rtf??? I just changed the following in RtfWriter.java (method writeFontList()): case Font.HEVETICA: os.write(fontSwiss); os.write(escape); os.write(fontCharset); os.write(os, 0); os.write(delimiter); //os.write(font

[iText-questions] Helvetica in PDF becomes Arial

2007-12-11 Thread dirty-mg
Hello, when I generate a pdf with text in Helvetica, it is not Helvetica but Arial. What is the solution? I really need Helvetica ... Thanks a lot best regards Marcus Germany - SF.Net email is sponsored by: Check out the

[iText-questions] Building own iText jar file

2007-12-11 Thread dirty-mg
Hello, I downloaded the itext sources. to compile it, I downloaded also the bouncycastle jar files. I integrated the itext sources and the bouncycastle jars in my test project. when I run my test project as a jar file I get the following error: Exception in thread "main" java.lang.SecurityExcep

[iText-questions] Helvetica font in rtf

2007-12-10 Thread dirty-mg
Hello, ich want to generate a rtf file with Helvetica as font. But when I open the doc in MS Word, it says the font is Arial. here my source: Cell c = new Cell(new Phrase("text", FontFactory.getFont("Helvetica", 11, com.lowagie.text.Font.BOLD))); Does anybody has a solution for this? regards, Ma