|
|
@@ -799,6 +799,9 @@ ORDER;
|
|
|
$pdf->AddPage();
|
|
|
// 设置字体
|
|
|
$pdf->SetFont('stsongstdlight', '', 10, '', true);
|
|
|
+ $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
|
|
+ $image = file_get_contents(\Yii::$app->basePath . '/../frontendEle/src/static/img/ngds-logo.jpg');
|
|
|
+ $pdf->Image('@' . $image, 165, 5, 20, 10, 'JPG');
|
|
|
$pdf->writeHTML($context);
|
|
|
$pdf->Output($realFile, 'F');
|
|
|
|
|
|
@@ -1052,6 +1055,9 @@ ORDER;
|
|
|
$pdf->AddPage();
|
|
|
// 设置字体
|
|
|
$pdf->SetFont('stsongstdlight', '', 10, '', true);
|
|
|
+ $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO);
|
|
|
+ $image = file_get_contents(\Yii::$app->basePath . '/../frontendEle/src/static/img/ngds-logo.jpg');
|
|
|
+ $pdf->Image('@' . $image, 165, 5, 20, 10, 'JPG');
|
|
|
$pdf->writeHTML($context);
|
|
|
$pdf->Output($realFile, 'F');
|
|
|
|