[iText-questions] converting PDF & RTF to TIFF-image

2007-05-10 Thread Marc Lustig
Hi, we need to read existing PDF- and RTF-files and save them as TIFF-images. Can anybody give us a hint if this is possible with iText? Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE

[iText-questions] problem with PdfPCell horiz. alignment

2005-11-04 Thread Marc Lustig
there is another strange behaviour with PdfPCell: PdfPCell c = new PdfPCell(); c.setBorder(0); c.setVerticalAlignment(Element.ALIGN_BOTTOM); c.addElement(new Phrase("Ort:", FONT)); c.setHorizontalAlignment(PdfPCell.ALIGN_RIGHT); table.addCell(c); ---> against any expectation the text "Ort" is NO

Re: [iText-questions] problem using cell.setFixedHeight() combined with cell.setColspan()

2005-11-04 Thread Marc Lustig
. You explained what you wanted to do not what you actually did. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Lustig Sent: Friday, November 04, 2005 10:41 AM To: itext-questions@lists.sourceforge.net Subject: Re: [iText-questions] problem

Re: [iText-questions] problem using cell.setFixedHeight() combined with cell.setColspan()

2005-11-04 Thread Marc Lustig
e- From: Marc Lustig [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 9:59 AM To: Paulo Soares Subject: Re: [iText-questions] problem using cell.setFixedHeight() combined with cell.setColspan() ok, so what strategy must I use to make the content of the multiple-colspan cell appearin

[iText-questions] problem using cell.setFixedHeight() combined with cell.setColspan()

2005-11-04 Thread Marc Lustig
(); c.setBorder(0); c.setVerticalAlignment(Element.ALIGN_BOTTOM); c.setFixedHeight(14); c.setColSpan(2); c.addElement(...); table.addCell(c); please, what is the problem? why is the content not appearing? thanks. -- Marc Lustig Entwicklung SiteOS AG Ismaningerstr. 13 81675 München Tel.: +49 89 / 90

[iText-questions] how to get vert. pos. of a cell to draw a line ?

2005-09-19 Thread Marc Lustig
Hi what's the easiest way to draw a line in a PdfPCell ? I read the PdfContentByte methods, but how can I get the relative vertical position of a given cell ? /m --- SF.Net email is sponsored by: Tame your development challenges with Apache

[iText-questions] how to set leading using line breaks

2004-01-20 Thread Marc Lustig
Hi all, I am still having trouble with the leading, now using a paragraph. I have tried various methods, but none have worked. The result that I need is: line 1 line 2 with a certain leading between those 2 lines. This is my code: Paragraph p = new Paragraph((float)(font.size()*2)); p.add(new P

[iText-questions] Phrase: how to leading b/w paragraphs

2003-09-03 Thread Marc Lustig
Obviously, the leading of a Phrase applies only as long as there is no line break. E. g. new Phrase(x, "aa\nbb") always results in a zero leading indepedent of the x value. How do I set the leading between paragraphs inside of a Phrase? Marc

[iText-questions] simulating document.add() possible?

2003-08-29 Thread Marc Lustig
Hi, is it possible to simulate a document.add(element) in order to check whether the element fits on the current page or not? Has somebody successfully done that? Greetings Marc --- This sf.net email is sponsored by:ThinkGeek Welcome to gee

[iText-questions] simulating document.add() possible?

2003-08-27 Thread Marc Lustig
Hi, is it possible to simulate a document.add() in order to check whether the element fits on the current page or not? Has somebody successfully done that? Greetings Marc --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven

[iText-questions] writer.fitsPage() issue: caused by a different calculation

2003-08-26 Thread Marc Lustig
[I have sent this message 19 hours ago. As it hasn't showed up, I try it again.] Paulo, I just discovered that the trouble with fitsPage(table) relates to the fact that this method uses a calculation that is different from the one that is used when adding the table via document.add(table). I found

AW: [iText-questions] Porblem with fitsPage / getTableBottom

2003-08-26 Thread Marc Lustig
Hi Anton, I am facing the same problems. Currently, in correspondence with fitsPage() I use only PdfPTable.setTotalWidth() to set the width. As a result the height is okay, but unfortunately the width is shrinked by approximately 30 %. I will work on this tomorrow again and I will let you know when

[iText-questions] writer.fitsPage() issue: caused by a different calculation

2003-08-25 Thread Marc Lustig
Paulo, I just discovered that the trouble with fitsPage(table) relates to the fact that this method uses a calculation that is different from the one that is used when adding the table via document.add(table). I found out that when I delete 4 (!) of the last rows then the table is added properly (o

AW: [iText-questions] Porblem with fitsPage / getTableBottom

2003-08-25 Thread Marc Lustig
Anton, I just figured out that both width and height are correct for me if I use only the setWidthPercentage() method and not the setTotalWidth() method. The problem that keeps me bothering is that the following code doesn't work. writer.fitsPage(table) seems somehow to trigger a newPage() event, a

[iText-questions] PdfPTable.deleteLastRow() issuing newPage() on false ?

2003-08-25 Thread Marc Lustig
Hi, what exactly does PdfPTable.deleteLastRow() do ? Does it really completely remove the last row? I am having trouble with the following logic: PdfPTable table = new PdfPTable(1); do { //add a row } while (writer.fitsPage(table)); table.deleteLastRow(); document.add(table); Now what happens i

AW: [iText-questions] writer.fitsPage(table) returning false even if there's space enough

2003-08-23 Thread Marc Lustig
3. August 2003 14:06 > An: Marc Lustig; iText list > Betreff: Re: [iText-questions] writer.fitsPage(table) > returning false even if there's space enough > > > I would like to see a runable example with that behavior. > > Best Regards, > Paulo Soares > > --

AW: [iText-questions] writer.fitsPage(table) returning false even if there's space enough

2003-08-23 Thread Marc Lustig
Cell(opCell); fits =document.writer.fitsPage(t); if (!fits) { t.deleteLastRow(); } else currentIndex++; } while(fits && gesamtAnzahl > currentIndex); PdfPCell c = new PdfPCell(t); //c.setBorder(0); return c; } > -

[iText-questions] writer.fitsPage(table) returning false even if there's space enough

2003-08-22 Thread Marc Lustig
Hi again, I tried to solve the problem another way and use writer.fitsPage(table); to check whether there is enough space or not. Strangely this doesn't work either: writer.fitsPage(table) returns false even when the table covers only 2/3 of the available space of the page. It always allows 32 row

[iText-questions] trouble with PdfPTable.getTotalHeight()

2003-08-22 Thread Marc Lustig
Hi, I have the following problem: I am adding new rows to a PdfPTable as long as PdfPTable.getTotalHeight() is below a certain value. This value is 22 cm. PAge size is A4. What happens is that PdfPTable.getTotalHeight() is reporting this value although the table has not even reached half of that

[iText-questions] trouble writing PdfPTable toPdfTemplate

2003-08-18 Thread Marc Lustig
Hi, I am having trouble writing a PdfPTable to a template. The code looks basically like this: PdfContentByte byteWriter = writer.getDirectContent(); PdfPTemplate abrechnungErgebnis = byteWriter.createTemplate(totalWidth, height); byteWriter.addTemplate(abrechnungErgebnis, leftMargin(), Util.toPt

[iText-questions] drawing line within a PdfPCell

2003-08-14 Thread Marc Lustig
Hi, what is the easiest way to draw a horizontal line inside a PdfPcell? If that's not possible how can I get the absolute position of the PdfPCell in order to draw the line using PdfContentByte ? Thanks. Marc --- This SF.Net email sponsored

[iText-questions] how to calculate vertical space of a PdfPCell

2003-08-14 Thread Marc Lustig
newPage respectively. Therefore I need to know the vertical space that a certain PdfPCell takes. Can someone please advise me how to calculate this vertical space. Thank you! Marc Marc Lustig, Diplom-Politologe Software Developer Office: +49-30/3987

[iText-questions] getting page-width without margins conveniently

2003-08-14 Thread Marc Lustig
Thanks, Paolo, for your recent answer. I have another simple question: what is the most convienent way to get the page-width (without borders) ? is it getPageSize().width()-leftMargin()-rightMargin() ? Also, I was wondering about the difference between left() and leftMargin(). Couldn't find any

AW: [iText-questions] how to avoid building the footer on each onEndPage call ?

2003-07-29 Thread Marc Lustig
The example provided does NOT use templates and events together! > -Ursprüngliche Nachricht- > Von: Paulo Soares [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 29. Juli 2003 21:40 > An: Marc Lustig; 'iText list' > Betreff: Re: [iText-questions] how to avoid

AW: [iText-questions] how to avoid building the footer on each onEndPage call ?

2003-07-29 Thread Marc Lustig
> Gesendet: Dienstag, 29. Juli 2003 17:29 > An: Marc Lustig; 'iText list' > Betreff: Re: [iText-questions] how to avoid building the > footer on each onEndPage call ? > > > The way to do it depends on the logic of your program. A > suggestion would be to create t

AW: [iText-questions] how to avoid building the footer on each onEndPage call ?

2003-07-29 Thread Marc Lustig
ed to be implemented individually throu static accessors? Regards Marc > -Ursprüngliche Nachricht- > Von: Paulo Soares [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 28. Juli 2003 13:06 > An: Marc Lustig; iText list > Betreff: Re: [iText-questions] how to avoid building t

AW: [iText-questions] how to avoid building the footer on each onEndPage call ?

2003-07-28 Thread Marc Lustig
et: Montag, 28. Juli 2003 13:06 > An: Marc Lustig; iText list > Betreff: Re: [iText-questions] how to avoid building the > footer on each onEndPage call ? > > > You can put your footer in a template and set that template > in onEndPage. > > Best Regards, > Paulo Soa

[iText-questions] strange exception regarding table width

2003-07-28 Thread Marc Lustig
Strangely, the method below always generates this Exception: ExceptionConverter: java.lang.RuntimeException: The table width must be greater than zero. I've explicitly set the width. What's wrong? public void onEndPage(PdfWriter writer, Document doc) { PdfPTable table = new PdfPTable(2);

[iText-questions] how to avoid building the footer on each onEndPage call ?

2003-07-28 Thread Marc Lustig
Hi, I'm about to get started with an event-based footer. I've only got one question: how do you avoid creating the same footer each and every time onEndPage is called? Is there a possibility to store a user object (such as a PdfPTable) into the document or the writer object so that this object c

[iText-questions] implementing CustomEvents

2003-07-27 Thread Marc Lustig
Hi, I have created a CustomEvents class extending PdfPageEventHelper. Now I am trying to add a method onEndPage in order to write a footer and a dynamic (template-based) page count. For now I'm wondering about two issues: 1) how do I register my class so that the methods get exectuted? 2) how d