osdir.com
mailing list archive

Subject: Re: writeSelectedRows() and page splitting - msg#00571

List: java.lib.itext.general

Date: Prev Next Index Thread: Prev Next Index
You can't have precise positioniting and automatic table splitting. It's not
a technical question but rather a question of good sense. Where would the
table split? Where would the table be placed in the next page?
You'll have to split the table yourself. You can have a look to
PdfDocument.addPTable() and modify it to suit your positioning.

Best Regards,
Paulo Soares

----- Original Message -----
From: <Stcarson@xxxxxxx>
To: <itext-questions@xxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, March 28, 2003 19:36
Subject: [iText-questions] writeSelectedRows() and page splitting


> Hello,
>
> I would like to use writeSelectedRows() with my PdfPTable, so that I can
> specify exactly where I want to place the table on the page. However,
> when I do and the table is too big to fit on that page, it is not
> automatically split at the end of the page. If I use
> document.add(table), the table is automatically split, but I lose the
> ability to specify the exact location of the table. What is the best way
> to be able to specify an table insertion point and get automatic table
> splitting at the end of a page.
>
> Thanks,
> Sean
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by:
> The Definitive IT and Networking Event. Be There!
> NetWorld+Interop Las Vegas 2003 -- Register today!
> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
> _______________________________________________
> iText-questions mailing list
> iText-questions@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>



-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en


Was this page helpful?
Yes No
Thread at a glance:

Previous Message by Date: click to view message preview

writeSelectedRows() and page splitting

Hello, I would like to use writeSelectedRows() with my PdfPTable, so that I can specify exactly where I want to place the table on the page. However, when I do and the table is too big to fit on that page, it is not automatically split at the end of the page. If I use document.add(table), the table is automatically split, but I lose the ability to specify the exact location of the table. What is the best way to be able to specify an table insertion point and get automatic table splitting at the end of a page. Thanks, Sean ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

Next Message by Date: click to view message preview

Re: how to stack images

You can't do it without absolute position. Image alignment sort of works in most cases but it's not customizable. The best alternative is to place the images at absolute positions and use a non rectangular ColumnText to flow the text around the images. Best Regards, Paulo Soares ----- Original Message ----- From: "john duda" <john@xxxxxxxxxxxxxx> To: <itext-questions@xxxxxxxxxxxxxxxxxxxxx> Cc: <john@xxxxxxxxxxxxxx> Sent: Friday, March 28, 2003 19:25 Subject: [iText-questions] how to stack images > i've recently switched from fop to itext on a project i'm working on > because i needed to get text to wrap around an image. i've managed to > get > the text wrapping without a problem, but I've run into a bit of a > problem > with image alignment. > > this is bascially the code i am using now: > > image1.setAlignment(Image.RIGHT | Image.TEXTWRAP); > image2.setAlignment(Image.RIGHT | Image.TEXTWRAP); > document.add(image1); > document.add(image2); > document.add(a whole bunch of text as a Paragraph); > > now what i get looks like: > > texttexttext+---++---+ > texttexttext| || | > texttexttext| 2 || | > texttexttext| || 1 | > texttexttext+---+| | > texttexttext | | > texttexttext +---+ > texttexttexttexttextte > texttexttexttexttextte > > in case my ascii art gets jumbled, image 1 is on the left hand edge > of the page, image 2 is to the left of image1, and the text wraps > around a rectangle which is this big: > image1.width+image2.width X max(image1.height,image2.height) > > > what i want, and what i thought was the intuitive meaning of the the > image alignment, would be this: > > texttexttexttext+---+ > texttexttexttext| | > texttexttexttext| | > texttexttexttext| 1 | > texttexttexttext| | > texttexttexttext| | > texttexttexttext+---+ > texttexttexttext+---+ > texttexttexttext| | > texttexttexttext| 2 | > texttexttexttext| | > texttexttexttext+---+ > > where each image is aligned with the left edge of the page. > > Suggestions as to an easy way to accomplish this(i.e. > without resorting to absolute positioning)? > > > john duda > john =@= manifestor.org > > > > > > > > > -- > > this is where my public key can be found: > gpg --keyserver www.keyserver.net --recv-keys 03817826 > Key fingerprint = 6C11 8D70 2ADE EFA9 498D 72CB 77EA 391A 0381 7826 > > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > iText-questions mailing list > iText-questions@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

Previous Message by Thread: click to view message preview

writeSelectedRows() and page splitting

Hello, I would like to use writeSelectedRows() with my PdfPTable, so that I can specify exactly where I want to place the table on the page. However, when I do and the table is too big to fit on that page, it is not automatically split at the end of the page. If I use document.add(table), the table is automatically split, but I lose the ability to specify the exact location of the table. What is the best way to be able to specify an table insertion point and get automatic table splitting at the end of a page. Thanks, Sean ------------------------------------------------------- This SF.net email is sponsored by: The Definitive IT and Networking Event. Be There! NetWorld+Interop Las Vegas 2003 -- Register today! http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en

Next Message by Thread: click to view message preview

Colored background behind text

Hi;   I need to draw a colored background, lines on that background, and then text over all of it. Do I just give iText the commands in the layer order I want?   thanks - dave
Sign up for updates to this mailing list. email:
Loading Comments...
Home | News | Patents | Sitemap | FAQ | advertise

Advertising by