FIX signature online with proposal with n page.
This commit is contained in:
parent
7c9d360019
commit
11da45646e
@ -129,8 +129,12 @@ if ($action == "importSignature") {
|
|||||||
$pdf->AddPage();
|
$pdf->AddPage();
|
||||||
$pagecount = $pdf->setSourceFile($upload_dir.$ref.".pdf"); // original PDF
|
$pagecount = $pdf->setSourceFile($upload_dir.$ref.".pdf"); // original PDF
|
||||||
|
|
||||||
$tppl = $pdf->importPage(1);
|
for ($i=1;$i<($pagecount+1);$i++) {
|
||||||
$pdf->useTemplate($tppl);
|
if ($i>1) $pdf->AddPage();
|
||||||
|
$tppl=$pdf->importPage($i);
|
||||||
|
$pdf->useTemplate($tppl);
|
||||||
|
}
|
||||||
|
|
||||||
$pdf->Image($upload_dir.$filename, 129, 239.6, 60, 15); // FIXME Position will be wrong with non A4 format. Use a value from width and height of page minus relative offset.
|
$pdf->Image($upload_dir.$filename, 129, 239.6, 60, 15); // FIXME Position will be wrong with non A4 format. Use a value from width and height of page minus relative offset.
|
||||||
$pdf->Close();
|
$pdf->Close();
|
||||||
$pdf->Output($newpdffilename, "F");
|
$pdf->Output($newpdffilename, "F");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user