|
@@ -187,7 +187,7 @@ finally:
|
|
loop.close()
|
|
loop.close()
|
|
`
|
|
`
|
|
|
|
|
|
- pyCode = fmt.Sprintf(pyCode, utils.ChromePath, width, reportUrl, width, filePath, top, bottom, left, right)
|
|
|
|
|
|
+ pyCode = fmt.Sprintf(pyCode, utils.ChromePath, width, reportUrl, width+left+right, filePath, top, bottom, left, right)
|
|
utils.FileLog.Info("pdf pyCode: \n" + pyCode)
|
|
utils.FileLog.Info("pdf pyCode: \n" + pyCode)
|
|
cmd := exec.Command(utils.CommandPython, "-c", pyCode)
|
|
cmd := exec.Command(utils.CommandPython, "-c", pyCode)
|
|
output, e := cmd.CombinedOutput()
|
|
output, e := cmd.CombinedOutput()
|