webERP Forum
Footer for quotation pdf - Printable Version

+- webERP Forum (http://www.weberp.org/forum)
+-- Forum: webERP Discussion (http://www.weberp.org/forum/forumdisplay.php?fid=1)
+--- Forum: Problems / Bugs? (http://www.weberp.org/forum/forumdisplay.php?fid=8)
+--- Thread: Footer for quotation pdf (/showthread.php?tid=8192)

Pages: 1 2


Footer for quotation pdf - Michelle - 08-22-2018

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


RE: Footer for quotation pdf - falkoner - 08-22-2018

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.

Tim

NB I haven't tried this but it should work ok.



RE: Footer for quotation pdf - Michelle - 08-22-2018

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();
}

After this i did not get how to output this



RE: Footer for quotation pdf - falkoner - 08-22-2018

I would use the addText() method to be consistent with the rest of the script.

Don't forget that this will not put the text on the last page, for that you need to add it after the totals as previously described.

Tim


RE: Footer for quotation pdf - Michelle - 08-22-2018

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 [attachment=844]

i did not get how to output in that page.



RE: Footer for quotation pdf - VortecCPI - 08-22-2018

(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:

PHP Code:
$pdf->addTextWrap($XPos$YPos-NN10018$html1'center'); 

or

PHP Code:
$pdf->addTextWrap($XPosNN10018$html1'center'); 

PLEASE NOTE "NN" must be determined by trial and error.

If you attach your current PHP files (header and content) I will try to help...


RE: Footer for quotation pdf - falkoner - 08-22-2018

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.

Tim


RE: Footer for quotation pdf - Michelle - 08-23-2018

Thanks!

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.






RE: Footer for quotation pdf - VortecCPI - 08-23-2018

(08-23-2018, 12:01 AM)Michelle Wrote: Thanks!

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.

Try this out...


RE: Footer for quotation pdf - Michelle - 08-23-2018

Thanks a lot. This is exactly what i wanted.