> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of gabriele rosa
> Sent: Wednesday, April 20, 2005 9:43 AM
> To: [email protected]
> Subject: [iText-questions] ... more on PdfPTable splitting on 
> page breaks
> 
> hello,
> 
> ... while trying to prevent the PdfPTable default splitting 
> behaviour when 
> crossing pages (relative positioning) I encountered some problems:
> 
> 1) is there a method to compute the "point" we've reached on 
> the current page 
> (the lenght of the current content)??? (by now I'm 
> calculating it by the mean 
> of summing the height of each element I add to the page, but it's a 
> quite "unsecure" way: for example, I do not know how to get 
> the lenght of the 
> page-header ...)
>

PdfWriter.getVerticalPosition()
 
> 2) is there a method to know the current page number??? The 
> method getPageNumber
> () of the class Document doesn't seem to work! This is 
> necessaire in case my 
> previous computation to prevent table-spiltting goes wrong: 
> the iText-pkg will 
> split the table (so a new-page will be created), but if I 
> call getPageNumber() 
> after adding the splitted table to the document the value 
> hasn't changed. Do I 
> have to flush output or something else?
>

PdfWriter.getPageNumber()


-------------------------------------------------------
This SF.Net email is sponsored by: New Crystal Reports XI.
Version 11 adds new functionality designed to reduce time involved in
creating, integrating, and deploying reporting solutions. Free runtime info,
new features, or free trial, at: http://www.businessobjects.com/devxi/728
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to