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
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
. 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
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
();
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
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
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
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
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
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
[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
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
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
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
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
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
>
> --
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;
}
> -
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
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
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
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
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
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
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
> 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
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
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
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);
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
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
30 matches
Mail list logo