Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

supress empty last page via java script

Avatar

Avatar
Level 1
Jürgen_Spranz
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Jürgen_Spranz
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
Jürgen_Spranz
Level 1

28-02-2018

Hallo,

I have heard that other guys have the same problem. But I haven't heard a good soltuion....

I have a formular:

Subforms:

+-Data                  float               Binding: GT.DATA[*]                    Repeat subform for each element          Paginierung after: Go to nex page

+---Header           Position        

+--- Positions        float               Binding: $.POS_TAB.DATA[*]     Repeat suform for each element            Paginierung OverflowHeaderArea: Header

    + Position          float

Datas are coming throug the interface in a  nested table

I hope it is the right english word.

It means a table in the table.

Header-Field1 / Header-Field2...... Positions

In Positions there is also a table:

Position-Field1 / Position-Field2.....

It works very fine. The values in my Header (e.g. Header-Field1) is correct. Also if in one group (header records) there is an page-break... The value is not empty it is the  right one 🙂

And on each new header-record I have a new page - how I want.

But I have the problem, that becaus I sav in the header-sub-form "after: go to next page". I have a last page, wich is empty.

This is logical.

But is there a way to supress the last page, if it is empty.

Ore ist there a solution to supress every empty page.

I thought about to loop over the complete PDF and if there is a page wich is empty to erase it from the PDF-Tree?

I dont't know the right words...

I think this is a problem not only from me - i read in different places in the internet.

I think, there must be a solution with java-Script.

My problem ist that i can't realy scripting and I dont't understand really the XFA Structure (ist this the right word).

I am very happy if someone can mail me a universal solution, which I can use again and again - I had the problem once before a year ago, because I have solved it by means of ABAP programming. Which is not really good. If someone in the position does something to it, it may be that the height of my fixed position number no longer fits ...

If someone is expert and can help me - I am very happy, becaus I invested a lot time in this problem.

If you want you can also discuss and answer direktly with my also JSpranz@gmx.de

But I think the benefit for other user should be also documented in the adobe-forum wich should be the first adress vor searching for adobe themes 🙂

You can answer here in the forum and sent me a mail - than I can look here 🙂

Accepted Solutions (0)

Answers (7)

Answers (7)

Avatar

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
mouslander
Level 4

06-03-2018

Unfortunately if you cannot share the file I am not sure how I can help you.

Avatar

Avatar
Level 1
Jürgen_Spranz
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Jürgen_Spranz
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
Jürgen_Spranz
Level 1

06-03-2018

Thank you for your offer.

What file do you want. The PDF-File?

This I can't give you because these are critical / secret Informations.

Ore do you mean another file, wich I can export from Adobe Live Cycle manager? Can you write, the way to export them.

I am very happy, if there is a chance to get support from you 🙂

I wish you a good time.

Bye.

Avatar

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
mouslander
Level 4

05-03-2018

If you'd like to send me the file I will be happy to look at it. my email is mousland@gmail.com

Avatar

Avatar
Level 1
Jürgen_Spranz
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Jürgen_Spranz
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
Jürgen_Spranz
Level 1

05-03-2018

But my feeling is that I am not the only one which have this problem.

I read a lot of discussion.

But not realy a solution

Avatar

Avatar
Level 1
Jürgen_Spranz
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Jürgen_Spranz
Level 1

Likes

0 likes

Total Posts

4 posts

Correct Reply

0 solutions
View profile
Jürgen_Spranz
Level 1

05-03-2018

I am not realy the expert 😞

There is a new page (because of wanted page-break afte a subform. And in the lost case this page is than in the result empty.

I don't know I should say it clearly and with only one change to intrepret my problem...

Avatar

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 4
mouslander
Level 4

Likes

23 likes

Total Posts

298 posts

Correct Reply

27 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
mouslander
Level 4

04-03-2018

I am not exactly sure what the issue is. I think you are saying that you have a blank page at the end of the document. If this is the case I have encountered that on an occasion. What I have found is that you have a page where the table is expanding beyond the page boundary. To fix it I moved the tables edge within the page and that solved the problem.

Avatar

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Validate 1
Level 4
MinusZero
Level 4

Likes

30 likes

Total Posts

326 posts

Correct Reply

54 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 25
Boost 10
View profile
MinusZero
Level 4

04-03-2018

When you say the last page is empty, is it empty of user content or empty of objects/fields?

If it contains fields but they are empty, you can easily hide the page by selecting if a field is null and if so, hide the page.

If it is blank and has no fields, you can still hide the page, but am not sure how you would query the page to find out if there is nothing on it.