|
@@ -329,10 +329,10 @@ func Report2pdfAndJpeg(reportUrl string, reportId, reportType int) {
|
|
pdfPath := `./static/` + reportCode + ".pdf"
|
|
pdfPath := `./static/` + reportCode + ".pdf"
|
|
jpegPath := `./static/` + reportCode + ".jpg"
|
|
jpegPath := `./static/` + reportCode + ".jpg"
|
|
|
|
|
|
- width := 1560
|
|
|
|
- if reportType == 3 {
|
|
|
|
- width = 800
|
|
|
|
- }
|
|
|
|
|
|
+ width := 1200
|
|
|
|
+ //if reportType == 3 {
|
|
|
|
+ // width = 800
|
|
|
|
+ //}
|
|
err = ReportToPdf(width, reportUrl, pdfPath)
|
|
err = ReportToPdf(width, reportUrl, pdfPath)
|
|
if err != nil {
|
|
if err != nil {
|
|
utils.FileLog.Info("ReportToPdf failed: , error: \n" + err.Error())
|
|
utils.FileLog.Info("ReportToPdf failed: , error: \n" + err.Error())
|