(I'm not sure if the title is descriptive enough)

In my view I include the body in full version, so sometimes the view row is so long, that it extends to the next page.
My problem is that, the page number (being a field), gets printed only after the previous field reaches the end. But, since the body field continues to the second page, the page number does not print to the first page.

Is there a way to force page number printing in each page?

If my description is not clear enough, please take a look at the following "graphic" ( :P ) example:

------------------ (1st page starts here)
|title 1         |
|                |
|body 1 blah blah|
|body 1 blah blah|
|body 1 blah blah|
|body 1 blah blah|
|body 1 blah blah|   <--- page number (1) is missing, because body field is not over yet
------------------ (2nd page starts here)
|body 1 blah blah|
|body 1 blah blah|
|body 1 blah blah|
|body 1 blah blah|
|body 1 blah blah|
|                |
|page number: 2  |   <--- page number (2) gets printed
------------------ (3rd page starts here)
|title 2         |
|                |
|body 2 blah blah|
|body 2 blah blah|
|body 2 blah blah|
|body 2 blah blah|
|body 2 blah blah|<--- page number (3) is missing, because body field is not over yet
------------------ (4th page starts here)
|body 2 blah blah|
|body 2 blah blah|
|body 2 blah blah|
|body 2 blah blah|
|body 2 blah blah|
|                |
|page number: 4  |   <--- page number (4) gets printed
------------------

Comments

vegansupreme’s picture

hmm, this is tricky.
I can reproduce the problem, but haven't found a solution.
You're welcome to submit a patch! :-)

killua99’s picture

Version: 7.x-1.3 » 7.x-1.x-dev

I'll try to do something if I have time. Should be this take in consideration to v 2 ?

pio.fernandes’s picture

hmmm... I think my use case also suffers from this behaviour.

killua99’s picture

Status: Active » Needs work

No promise. I'll to see what happen here.

Tranko’s picture

Same problem! I didn't find any (good) solution.

Edit: Testing with the last version now it prints the first and the last page number of the field that has several pages.
I will test with the last libraries if there is any issue with them.

Edit2: I am using Drupal 7 with last version available, last version of the module and the last version of the libraries that appear in the documentation:

Drupal 7.61
Views_PDF 7.x-1.7
TCPDF: 6.2.26
FPDI: 1.6.2

And it still happens.

killua99’s picture

Status: Needs work » Closed (outdated)