Commit 224e0c4c authored by Smile's avatar Smile

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

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