Ask Your Question
0

Footer on the last page

asked 2018-07-20 12:12:09 +0200

nur.assanali gravatar image

updated 2018-07-20 12:25:46 +0200

Hello World.
I'm new in this community, so this is my first post and that's why please don't be strict to me.
As you already understand by my first sentence, my English level isn't good.
BTW, I try to explain my issue.
I got software based on cuba-platform.
There is a report where I need place footer only on the last page. The number of pages is not permanent.
It depends on data from the document which is stored in the program.
I just click on the button in UI and system gives me a file with .odt extension.

I have a Tepmlate File.odt where i place data anchor like
${Organization.fullName}
${Organization.legalAddress}
${Employee.name}
etc

This is Output 1.odt, Output 2.odt, Output 3.odt what system can gives me as result with fullfilled data from the document.

As you can see my footer
Nur Assanali
313

is placed only on the last page i.e. Output 1.odt has one page, footer is on the first page
Output 2.odt has two pages, footer is only on the second page
Output 3.odt has three pages, footer is only on the third page

i know how to do it in ms word using field codes.
It would be like { IF { PAGE } = { NUMPAGES } “${Initiator.name}” “” }

edit retag flag offensive close merge delete

Comments

1

So: what is the expected result in these files (i.e., what is the footer that needs to be on the last page)? depending on that, it could be possible to suggest something.

Mike Kaganski gravatar imageMike Kaganski ( 2018-07-20 12:23:59 +0200 )edit
1

Please see pierre-yves samyn's discussion (and proposed solution) for a similar question. It includes a "conditional footer" sample document. There are other "last-page-footer" suggestions there, too.

David gravatar imageDavid ( 2018-07-20 13:38:36 +0200 )edit

Footer is "Nur Assanali 313" it is pulled from software. It can be "Mile Kaganski and your phone number" or "David and his phone number".

nur.assanali gravatar imagenur.assanali ( 2018-07-23 06:24:30 +0200 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-07-20 14:42:32 +0200

updated 2018-07-20 15:10:00 +0200

I don't know if it is possible using your generating software, but you could add a floating text box anchored to the paragraph after the table; and set its position relative to the page - in the footer's area.

Here is a sample.

On the other hand: using the trick by @pierre-yves samyn mentioned by @David above, which is to display text on all but the last page using the next page number with custom format, it could be possible to make the footer fixed height, and use long string of whitespaces as custom format to move the actual footer text out of the visible area of the footer on all pages except the last. Sample for this.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-07-20 12:12:09 +0200

Seen: 174 times

Last updated: Jul 20 '18