I am getting a lot of overlapping (one on top of another) rows in my pdf output and also strange page breaks in the middle of the table. Any ideas what could be causing these and how can I fix them? Thanks!

CommentFileSizeAuthor
#2 broken.pdf77.13 KBpaulen
#4 View Export.txt35.59 KBpaulen
#4 View PDF.pdf76.03 KBpaulen

Comments

paulen’s picture

The anomalies jump around as the formatting is adjusted.

paulen’s picture

Status: Postponed (maintainer needs more info) » Active
StatusFileSize
new77.13 KB
hunziker’s picture

Status: Active » Postponed (maintainer needs more info)

Can you provide the views export, the resulting PDF and if existing the PDF template files?

paulen’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new76.03 KB
new35.59 KB

Attached docs, no templates.

Thanks!

paulen’s picture

Status: Postponed (maintainer needs more info) » Active
c3alm’s picture

On a multiple page pdf (A4, landscape), after each page break, the next two rows are overlapped.
The top margin is ignored only in page1.
Header is present only in page 1.
Thanks!

candelas’s picture

@c3alm: i dont know if it is the same bug that i am having in http://drupal.org/node/1226980
are you using the unformated style?
if so. can you try to take everything from header and footer and see if it works ok?
do you have any field that has to be cut between to pages?
and if you see something, con you please report there? thanks :)

c3alm’s picture

I'm using table style.
The problem i find is identical to the one showed in http://drupal.org/files/issues/View%20PDF.pdf
The first line of page 2 is overlapped because it follows from page 1.
Page 3 is OK as page 2 ends with page break.

On my table, adding a page number field to the table, shows that the first line printed on page 2 is from page 1.

candelas’s picture

so the problem comes when divides one cell in to pages, as in unformated style.... i get no mumbers when a field is in more than 2 pages... and has to break the cell (even if it is not a table...).
i hope hunziker has a clue on this... :)

hanoii’s picture

I am experiencing the same issue, also table display

hanoii’s picture

For what it worth, playing a little bit with page margins as well as setting table height sizes fixed this for me.

netmate’s picture

The error seems to be around row 589 in views_pdf_template.php

netmate’s picture

I came up with a little fix, which needs testing.

From line 580-587 in in views_pdf_template.php (version 6.x-1.0)

      if (($rowY + $this->bMargin + $options['position']['row_height']) > $pageDim['hk']) {
        $rowY = $this->tMargin;
        $this->addPage();
      }
      
      if ($this->lastWritingPage != $this->getPage()) {
        $rowY = $this->y; // $rowY - $pageDim['hk']
      }

Change to:

      if ($this->lastWritingPage != $this->getPage()) {
        $rowY = $this->y; // $rowY - $pageDim['hk'] 
      }
      else if (($rowY + $this->bMargin + $options['position']['row_height']) > $pageDim['hk']) {
        $rowY = $this->tMargin;
        $this->addPage();
      }
sozonov’s picture

set Row Height in TABLE POSITION and everything should work

simon georges’s picture

Status: Active » Closed (won't fix)

I apologize, the 6.x version is not maintained any more. This issue is close for this reason.
Please upgrade to a supported version and feel free to reopen the issue on the new version if applicable.