cancel
Showing results for 
Search instead for 
Did you mean: 

Table - minimum height?

Former Member
0 Kudos
512

Hi,

I'm creating an PDF print form for a customer and they have a layout requirement which I cannot figure out how to do.

The problem is that a table should fill the most of the page regardless of the number of lines, but when the document should be paginated, the footer should be moved to the last page. I hoped it would be as simple at the ability to set minimum height on the bodyrow, but this isn't possible.

I hope someone has a great idea how to fix this, as it's beginning to drive me crazy?

Here you can see page 1 and 2 from the customers layout description - if there is no pagination, page 1 should look like page 2.

Regards,
Stefan

View Entire Topic
Former Member
0 Kudos

I found the solution by scripting it.


The bodyrow content is wrapped in a positioned subform, where I calculate the subform height based on table height, page numbers, and the other elements on the pages.

Florian
Active Contributor
0 Kudos

Would be nice, if you share your solution here

~Florian

Former Member
0 Kudos

I already did, but here's some more details.

The bodyrow content is wrapped in a positioned subform, where I calculate the subform height based on table height, page numbers, and the other elements on the pages.

On the initialize event on the wrapper subform I have this javascript:

var layoutheight = "174mm";

var lastpagelayoutheight = "147.79mm";

var pagecount = $layout.pageCount();

if (data.Page1.Linjer.BodyRows.HeightSpacer.Linjetabel.h > lastpagelayoutheight){

  data.Page1.Linjer.BodyRows.HeightSpacer.h = ((pagecount - 1) * layoutheight) + lastpagelayoutheight;

  }

else{

  data.Page1.Linjer.BodyRows.HeightSpacer.h = lastpagelayoutheight;

  }


Currently it needs some work done after some more thorough testing with a lot of lines. But you probably get the point.

Florian
Active Contributor
0 Kudos

Hi Stefan,

thanks for sharing. I saw that you have done some before, but a lot of us (me) like solutions with some javascript-lines in to get a better clue.

I'm just thinking if there is another solution available...

~Florian

harshal_likhar
Explorer
0 Kudos

Hello Stefan,
I have a similar requirement where the table should fill the most of the page regardless of the number of lines, I tried the few ways but it did not work,I am new to the adobe forms could you please share some insight how exactly i can achieve it.

Thanks,

Harshal