Hey,

I was not familiar with this method. I gave it a try, and it didn't work,
which is what I was expecting since I do work with other cells that span
pages.

Here's a screen cap of the first page of my example PDF: 
http://old.nabble.com/file/p27689378/pdfspan.png pdfspan.png 

The orange cells are designed to span across pages. The charts should never
split across multiple pages. You can't see it, but on the 2nd page there is
a 2nd chart (because there was not enough space in that bottom left square
on the first page to render it.) The problem is the corresponding orange
cell doesn't move to the 2nd page along with the chart. 

I think setting this cell to span multiple pages causes issues when
extending the last row, unless I'm using it incorrectly.

What I was looking to do is attach to each orange cell an event that checks
the remaining vertical space allotted to it. If it is less than the height
of one of the charts (which are always of fixed height in my application,)
then I want to pad the orange cell with just enough white space to bump the
next orange cell to the next page. Alternatively, if I could attach a
pre-render event (if there were one,) I could pad the top of the cell or
pre-pend it with an empty cell to force it to start rendering on the next
page.

Hopefully I'm just using the setExtendLastRow method incorrectly or there's
another approach that would work.

Thanks for your help,

-- Cam


1T3XT info wrote:
> 
> mistercam wrote:
>> Hello,
>> 
>> A brief background: What I'm looking to do is alter the height of a cell
>> based on where the bottom of it was rendered. I have a 3x3 PdfPTable that
>> contains PdfPCells or PdfPTables. Based on the remaining space of the
>> page,
>> after rendering one of these PdfPCells, I may want to pad it on the
>> bottom
>> with additional space so that subsequent rows are rendered on the next
>> page.
> 
> You're describing the functionality of setExtendLastRow();
> Did you try that method?
> 
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> Check the site with examples before you ask questions:
> http://www.1t3xt.info/examples/
> You can also search the keywords list:
> http://1t3xt.info/tutorials/keywords/
> 
> 

-- 
View this message in context: 
http://old.nabble.com/PdfPTable-or-PdfPCell-Pre-render-Events---Dynamically-resizing-cells-tp27688507p27689378.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to