Commit 224e0c4c authored by Smile's avatar Smile

需求97 空运提单下载/预览调整,后台代码部分提交

parent 878d7a2f
......@@ -57,12 +57,12 @@ public class AirHtmlToPdfUtil {
PdfDocument pdfDocument = pdfDocumentEvent.getDocument();
Document doc = new Document(pdfDocument);
int pageNumber = pdfDocument.getPageNumber(page);//当前页码
if (pageNumber != 1) {//表示不是首页
this.addPageHeader(doc, pdfDocument);
// if (pageNumber != 1) {//表示不是首页
// this.addPageHeader(doc, pdfDocument);
//this.addPageFooter(doc, pdfDocument);
} else {
// } else {
//this.addPageFooter(doc, pdfDocument);
}
// }
}
/**
......@@ -147,11 +147,11 @@ public class AirHtmlToPdfUtil {
// 4-往 Document 添加内容
for (IElement e : elements) {
if (document.getPdfDocument().getNumberOfPages() == 0) {
document.setMargins(0, 10, 200, 10);
} else {
document.setMargins(130, 10, 200, 10);
}
// if (document.getPdfDocument().getNumberOfPages() == 0) {
// document.setMargins(0, 10, 200, 10);
// } else {
// document.setMargins(130, 10, 200, 10);
// }
BlockElement blockElement = (BlockElement) e;
//blockElement.setMargins(1, 0, 1, 0);
......
......@@ -301,7 +301,7 @@
</tbody>
</table>
<!--账户信息-->
<table class="efg" style="width:100%;margin-bottom: 2rem;">
<table class="efg" style="width:100%;margin-bottom: 0.4rem;">
<tbody>
<tr style="height:25px;font-family: 'Times New Roman';">
<th
......
......@@ -204,7 +204,7 @@
</tbody>
</table>
<!--账户信息-->
<table class="efg" style="width:100%;margin-bottom: 2rem;">
<table class="efg" style="width:100%;margin-bottom: 0.4rem;">
<tbody>
<tr style="height:25px;font-family: 'Times New Roman';">
<th
......
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