Commit 96ee6467 by 梁辉

优化了检测报告html转pdf不居中问题

parent 7ef17474
......@@ -439,7 +439,8 @@ public class CarReportUtil {
reportHtml = reportHtml.replace("src=\"../..", "src=\"" + host).replace("src=\"/businesscom", "src=\"" + host + "businesscom")
.replace("黑体","SimSun").replace("<br> \n" +
" <br>","<br style=\"page-break-after:always;\"> \n" +
" <br style=\"page-break-after:always;\">");
" <br style=\"page-break-after:always;\">")
.replace("<div>","<div style=\"margin-left:-500px\">");
Document parse1 = Jsoup.parse(reportHtml);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment