Просмотр исходного кода

feat: EK-3320: 订单增加 Invoice 下载

zhangl 1 месяц назад
Родитель
Сommit
9325ea79b8
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      common/libs/export/BaseExport.php

+ 3 - 2
common/libs/export/BaseExport.php

@@ -1920,7 +1920,7 @@ ORDER;
             // 设置行高
 //            $pdf->setCellHeightRatio(1);
             // 设置左、上、右的间距
-            $pdf->SetMargins('10', '0', '10');
+            $pdf->SetMargins('5', '0', '5');
             // 设置是否自动分页  距离底部多少距离时分页
             $pdf->SetAutoPageBreak(TRUE, '15');
             // 设置图像比例因子
@@ -1932,7 +1932,8 @@ ORDER;
             $pdf->setFontSubsetting(true);
             $pdf->AddPage();
             // 设置字体
-            $pdf->SetFont('stsongstdlight', '', 10, '', true);
+//            $pdf->SetFont('stsongstdlight', '', 10, '', true);
+            $pdf->SetFont('宋体', '', 10, '', true);
 //            $image_file = \Yii::$app->basePath . '/../ngds-logo.jpg';
 //            $image = file_get_contents($image_file);
 //            $pdf->Image('@' . $image, 15, 12, 20, 7, 'JPG');