PDF- document shows black line - if you have more that one page

Remove black lines in multi-page PDF exports from ChronoForms.

Overview

The lines appear due to default header and footer borders in the TCPDF library, even when margins are adjusted.
Edit the TCPDF library file to remove the code that draws the header line, as referenced in the linked forum solution.

Answered
je jensfx 04 Sep, 2014
at the pdf export i have small horizontal black lines (see graphic)

[attachment=0]chronos.jpg[/attachment]

this show area between 2 pages




i tried to use browserreset .

i know i post this 2nd time but this time with picture...
you can delete this thread:
http://www.chronoengine.com/forums/posts/f3/t97396/pdf-document-shows-black-line-if-you-haqve-more-than-one-page.html
Gr GreyHead 04 Sep, 2014
Hi jensfx,

I think that these lines are set by default under the header and over the footer on each page - and they still appear even if the header is empty. I'm not sure why the footer one is right at the bottom of the page though :-( Have you changed the margin settings?

I'm also not sure if they can be removed from the present TCPDF action.

Bob
je jensfx 05 Sep, 2014
Hi Bob,

yes i change the margin setting.
i think (not 100% sure) that in version4 the pdf export workes without these lines
Gr GreyHead 05 Sep, 2014
1 Likes
Hi Jensfx,

I thought that the CFv4 action was the same but I'm not sure. I tried looking at the code and Googling but I can’t see any simple fixes :-( There are some suggestions in this StackOverFlow thread but they would all need quite deep hacks to make work.

Bob
je jensfx 06 Sep, 2014
Answer
thx that worked for me. for all the other you have to edit the file
0:/administrator/components/com_chronoforms5/chronoforms/actions/tcpdf/tcpdf/tcpdf.php


you have to delete this at line 4200
	// print an ending header line
			
			$this->SetLineStyle(array('width' => 0.85 / $this->k, 'cap' => 'butt', 'join' => 'miter', 'dash' => 0, 'color' => array(0, 0, 0)));
			$this->SetY((2.835 / $this->k) + max($imgy, $this->y));
			if ($this->rtl) {
				$this->SetX($this->original_rMargin);
			} else {
				$this->SetX($this->original_lMargin);
			}
			$this->Cell(($this->w - $this->original_lMargin - $this->original_rMargin), 0, '', 'T', 0, 'C');
This topic is locked and no more replies can be posted.