1
0
mirror of https://github.com/lxsang/antd-web-apps synced 2024-12-26 01:18:21 +01:00

Fix PDF export problem
All checks were successful
gitea-sync/antd-web-apps/pipeline/head This commit looks good

This commit is contained in:
lxsang 2022-11-08 10:32:26 +01:00
parent 452e3c5343
commit b10ecfc259

View File

@ -57,9 +57,7 @@ function IndexController:pdf(...)
print(cmd) print(cmd)
local r = os.execute(cmd) local r = os.execute(cmd)
if r then if r then
local mime = std.mimeOf(tmp_file) std.sendFile(tmp_file)
std.header(mime)
std.f(tmp_file)
return false return false
else else
return self:error("Sorry.Problem generate PDF file") return self:error("Sorry.Problem generate PDF file")