Fixed size table in PDF format [message #1223313] |
Mon, 23 December 2013 03:26 |
Alex Che Messages: 2 Registered: December 2013 |
Junior Member |
|
|
Hi All,
need help with the following task.
I have a report that contains some instructions as well as tickboxes, signature fields, etc. The report is printed, then someone fills it in and then report is OCRed to check for signatures / checkmarks and so on.
I have a grid with 5 rows, rows 1 and 5 are always fixed height, and these rows contain all machine - readable fields. These 2 rows has to be perfectly aligned on a page, i.e. to be always exactly on the same place on a page when printed in PDF.
Rows 3-5 can shrink or grow dynamicly depending on their content.
Question - how can i enforce the row 5 to be always at the bottom of page? If rows 2 and three shrank i want row 4 to grow and fill extra space in a way that row 5 is at the bottom of page.
What i tried so far:
1. include these 5 rows in another row / cell, and specify height in this wrapper row, make it non shrinkable - didn't help. I played allot with different settings for internal rows, can't manage to force row 4 to grow, it only shrinks for some reason.
2. Another idea that i did not manage to implement - is to put some code in onRender() of the row 4, so it is executed after the row 3 is rendered and it's dimensions and positions are known, so i can calculate the required height of row 4 and set it progrmmatically . Here i didn't find a way to "read" the actual hight / position of the Row 3. I can only read static values that were specified for the row in the designer.
Thanks in advance,
Alex
|
|
|
Re: Fixed size table in PDF format [message #1224019 is a reply to message #1223313] |
Wed, 25 December 2013 09:11 |
Colin Sutton Messages: 121 Registered: July 2009 |
Senior Member |
|
|
Alex Che <forums-noreply@xxxxxxxx> wrote:
> Hi All,
> need help with the following task.
>
> I have a report that contains some instructions as well as tickboxes,
> signature fields, etc. The report is printed, then someone fills it in
> and then report is OCRed to check for signatures / checkmarks and so on.
> I have a grid with 5 rows, rows 1 and 5 are always fixed height, and
> these rows contain all machine - readable fields. These 2 rows has to be
> perfectly aligned on a page, i.e. to be always exactly on the same place
> on a page when printed in PDF.
>
> Rows 3-5 can shrink or grow dynamicly depending on their content.
>
> Question - how can i enforce the row 5 to be always at the bottom of
> page? If rows 2 and three shrank i want row 4 to grow and fill extra
> space in a way that row 5 is at the bottom of page.
>
> What i tried so far:
> 1. include these 5 rows in another row / cell, and specify height in this
> wrapper row, make it non shrinkable - didn't help. I played allot with
> different settings for internal rows, can't manage to force row 4 to
> grow, it only shrinks for some reason.
> 2. Another idea that i did not manage to implement - is to put some code
> in onRender() of the row 4, so it is executed after the row 3 is rendered
> and it's dimensions and positions are known, so i can calculate the
> required height of row 4 and set it progrmmatically . Here i didn't find
> a way to "read" the actual hight / position of the Row 3. I can only read
> static values that were specified for the row in the designer.
>
> Thanks in advance,
> Alex
Define a two row grid, include the table in both rows, make table 1 row 5
invisible in the first grid row, table 2 rows 1-4 invisible in the second
grid row. Adjust the grid and table row sizes as required. Not efficient,
but should do the job.
--
Colin
|
|
|
|
Powered by
FUDForum. Page generated in 0.03452 seconds