Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
(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
Comment #1
vegansupreme CreditAttribution: vegansupreme commentedhmm, this is tricky.
I can reproduce the problem, but haven't found a solution.
You're welcome to submit a patch! :-)
Comment #2
killua99 CreditAttribution: killua99 commentedI'll try to do something if I have time. Should be this take in consideration to v 2 ?
Comment #3
pio.fernandes CreditAttribution: pio.fernandes commentedhmmm... I think my use case also suffers from this behaviour.
Comment #4
killua99 CreditAttribution: killua99 commentedNo promise. I'll to see what happen here.
Comment #5
Tranko CreditAttribution: Tranko commentedSame 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.
Comment #6
killua99 CreditAttribution: killua99 commented