I want to add This document has been electronically generated and requires no physical signature or stamp
this text in footer of all pages of Quotation print (PDFQuotationPortrait.php).
How and where i can define the footer ? please giude
If you look at the top of the includes/PDFQuotationPageHeader.php script you should see the following:
if ($PageNumber > 1) { // Inserts a page break if it is not the first page.
$PDF->newPage();
}
If you output the required text immediately before the $PDF->newPage(); command it should be the last thing to appear on each page.before a new one is generated.
You will then need to output the text on the last page, by putting it immediately after the totals in PDFQuotation.php at about line 223.
Thanks.
I have placed the text before $pdf->newPage();
if ($PageNumber>1) {// Inserts a page break if it is not the first page.
$html1 = 'This document has been electronically generated and requires no physical signature or stamp';
$pdf->writeHTML($html1, true, false, true, false, 'C');
$pdf->newPage();
}
I have placed the whole text after 223 after the total like this
$html1 = 'This document has been electronically generated and requires no physical signature or stamp';
$pdf->addTextWrap($XPos, $YPos, 100, 18, $html1, 'center');
(08-22-2018, 09:29 PM)Michelle Wrote: I have placed the whole text after 223 after the total like this
$html1 = 'This document has been electronically generated and requires no physical signature or stamp';
$pdf->addTextWrap($XPos, $YPos, 100, 18, $html1, 'center');
but it is coming like this
i did not get how to output in that page.
You need to increment (or decrement) the $YPos variable or fix it to a position on the page:
Also looking at the output 18 seems too big a font size, I would reduce it, and 100 is too short a length. As Paul says this is all trial and error to get it as you want it.
Here i am attaching the PDFQuotation.php. I could not attach PDFQuotationPageHeader.inc here. I have added footer lines in PDFQuotation.php line 223. But i did not change any content in PDFQuotationPageHeader.inc.
Here i am attaching the PDFQuotation.php. I could not attach PDFQuotationPageHeader.inc here. I have added footer lines in PDFQuotation.php line 223. But i did not change any content in PDFQuotationPageHeader.inc.