mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-06 17:13:03 +01:00
NEW The signature is on the good page even if another module add pages
This commit is contained in:
@@ -757,6 +757,10 @@ class pdf_azur extends ModelePDFPropales
|
||||
// Customer signature area
|
||||
if (!getDolGlobalString('PROPAL_DISABLE_SIGNATURE')) {
|
||||
$posy = $this->_signature_area($pdf, $object, $posy, $outputlangs);
|
||||
|
||||
// Rewrite keywords to add a tag with the numero of page that contains the signature section
|
||||
$keywords = $outputlangs->convToOutputCharset($object->ref)." ".$outputlangs->transnoentities("PdfCommercialProposalTitle")." ".$outputlangs->convToOutputCharset($object->thirdparty->name);
|
||||
$pdf->SetKeyWords($keywords." PAGESIGN=".$pdf->getPage());
|
||||
}
|
||||
|
||||
// Pied de page
|
||||
|
||||
@@ -879,6 +879,10 @@ class pdf_cyan extends ModelePDFPropales
|
||||
// Customer signature area
|
||||
if (!getDolGlobalString('PROPAL_DISABLE_SIGNATURE')) {
|
||||
$posy = $this->drawSignatureArea($pdf, $object, $posy, $outputlangs);
|
||||
|
||||
// Rewrite keywords to add a tag with the numero of page that contains the signature section
|
||||
$keywords = $outputlangs->convToOutputCharset($object->ref)." ".$outputlangs->transnoentities("PdfCommercialProposalTitle")." ".$outputlangs->convToOutputCharset($object->thirdparty->name);
|
||||
$pdf->SetKeyWords($keywords." PAGESIGN=".$pdf->getPage());
|
||||
}
|
||||
|
||||
// Add number of pages in footer
|
||||
|
||||
Reference in New Issue
Block a user