VAT special invoice — generate this PDF with Java (Template)
Template1 页 A4 · 31 KB
VAT special invoice layout: invoice numbers, buyer/seller, itemised lines and tax-inclusive totals.

Output specs
- PDF pages
- 1
- Chart type
- Template
- Template lines
- 184
- Source lines
- 222
Java source · JQuickBiz100VatSpecialInvoice.java
This is the complete test class that produced the PDF above — copy it and run as-is; see the quick-start section for the Maven dependency.
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* Copyright (c) [2025-2099] Martin ([email protected])
*/
package com.github.paohaijiao.biz.finance;
import com.github.paohaijiao.config.JPdfConfig;
import com.github.paohaijiao.executor.JQuickPdfFactory;
import java.io.File;
import java.io.IOException;
import java.math.BigDecimal;
import java.nio.file.Files;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 单据 100:增值税专用发票(finance 领域第 1 项)。
*
* <p>本类为独立可运行 Demo:自带 {@code main} 方法、不依赖任何公共工具类或实体类,
* 数据以 key-value 形式通过 {@link JQuickPdfFactory#bindAll(Map)} 注入,
* 版式全部落在模板文件 {@code demo/biz/finance/100_vat_special_invoice.txt} 中。</p>
*
* <p>视觉主题「绯红·斑马·典式」:主色 #962119、辅色 #279166、浅底 #F7F0F0;
* 版式为 classic 抬头 + grid2 信息区 + striped 明细表 + three 签章区 + right 落款,
* 与同领域其它单据互不重样。</p>
*
* <p>增值税专用发票:机器编号 / 发票代码 / 号码 / 开票日期 / 校验码、</p>
* <p>购买方与销售方四项信息、货物或应税劳务明细(规格、单位、数量、单价、金额、税率、税额)、</p>
* <p>合计与价税合计(大小写)、备注、发票专用章与骑缝章二维码占位,</p>
* <p>收款人 / 复核 / 开票人签字栏。</p>
*
* <p>运行后输出:{@code D:/test/pdf/100_vat_special_invoice.pdf}。</p>
*
* @author Martin
* @version 1.0.0
*/
public class JQuickBiz100VatSpecialInvoice {
private static final String PDF_DIR = "D:/test/pdf/";
private static final String OUT_FILE = PDF_DIR + "100_vat_special_invoice.pdf";
private static final String TEMPLATE = "demo/biz/finance/100_vat_special_invoice.txt";
/** 模板固定明细行数,不足时补空行,避免占位符原样输出。 */
private static final int ITEM_ROWS = 5;
public static void main(String[] args) throws IOException {
new File(PDF_DIR).mkdirs();
// ---------- 1. 数据(无实体类,直接 bind)----------
String[][] items = {
{"工业级伺服电机", "SVM-750W", "台", "12", "1860.00", "—", "13%", "—"},
{"精密减速机", "RV-40E", "台", "12", "1240.00", "—", "13%", "—"},
{"运动控制卡", "MC-8020", "块", "6", "2350.00", "—", "13%", "—"},
{"设备安装调试服务", "—", "项", "1", "8600.00", "—", "6%", "—"},
{"技术服务费", "—", "项", "1", "4200.00", "—", "6%", "—"}
};
Map<String, Object> data = new LinkedHashMap<String, Object>();
data.put("invoiceCode", "011002100311");
data.put("invoiceNo", "08876325");
data.put("issueDate", "2026年09月18日");
data.put("machineNo", "661020189023");
data.put("checkCode", "0389 27165 40218 76350");
data.put("buyerName", "××智能装备制造有限公司");
data.put("buyerTaxNo", "91320100MA1X7K38XG");
data.put("buyerAddressPhone", "××市××区智造大道 88 号 025-8877××××");
data.put("buyerBankAccount", "中国工商银行××支行 4301 0123 4567 8901");
data.put("sellerName", "××自动化科技有限公司");
data.put("sellerTaxNo", "91320100MA1Y2P94QD");
data.put("sellerAddressPhone", "××市××区科创一路 6 号 025-6655××××");
data.put("sellerBankAccount", "招商银行××分行 1259 8877 6655 4433");
data.put("remark", "合同号 HT-2026-0713;本发票为 2026 年 9 月设备采购及安装调试开具。");
data.put("payee", "沈亦舟");
data.put("reviewer", "柳文渊");
data.put("drawer", "苏见宁");
// 明细逐格展开,并累计金额
BigDecimal itemTotal = BigDecimal.ZERO;
BigDecimal taxTotal = BigDecimal.ZERO;
for (int i = 0; i < ITEM_ROWS; i++) {
int n = i + 1;
if (i >= items.length) {
data.put("itemName" + n, "—");
data.put("itemSpec" + n, "—");
data.put("itemUnit" + n, "—");
data.put("itemQty" + n, "—");
data.put("itemPrice" + n, "—");
data.put("itemAmount" + n, "—");
data.put("itemRate" + n, "—");
data.put("itemTax" + n, "—");
continue;
}
BigDecimal qty = new BigDecimal(items[i][3]);
BigDecimal price = new BigDecimal(items[i][4]);
BigDecimal amount = qty.multiply(price).setScale(2, BigDecimal.ROUND_HALF_UP);
BigDecimal rate = new BigDecimal(items[i][6].replace("%", ""));
BigDecimal tax = amount.multiply(rate)
.divide(new BigDecimal(100), 2, BigDecimal.ROUND_HALF_UP);
itemTotal = itemTotal.add(amount);
taxTotal = taxTotal.add(tax);
data.put("itemName" + n, items[i][0]);
data.put("itemSpec" + n, items[i][1]);
data.put("itemUnit" + n, items[i][2]);
data.put("itemQty" + n, items[i][3]);
data.put("itemPrice" + n, price.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString());
data.put("itemAmount" + n, amount.toPlainString());
data.put("itemRate" + n, items[i][6]);
data.put("itemTax" + n, tax.toPlainString());
}
data.put("totalAmount", itemTotal.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString());
data.put("totalTax", taxTotal.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString());
BigDecimal withTax = itemTotal.add(taxTotal);
data.put("totalWithTax", withTax.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString());
data.put("totalWithTaxInWords", toChineseAmount(withTax));
data.put("totalLine", "价税合计(大写)" + toChineseAmount(withTax) + " (小写)¥" + withTax.setScale(2, BigDecimal.ROUND_HALF_UP).toPlainString());
// ---------- 2. 渲染 ----------
JPdfConfig config = new JPdfConfig();
config.getLayoutConfig().setFlexLayout(true);
config.getDoc().setMargins(Arrays.asList(36, 36, 36, 36));
config.getFontConfig().setDefaultFontName("Noto Sans CJK SC");
config.getHeaderConfig().setEnabled(true);
config.getHeaderConfig().setText("××自动化科技有限公司 增值税专用发票 08876325");
config.getHeaderConfig().setFontSize(8f);
config.getHeaderConfig().setHeight(32);
config.getFooterConfig().setEnabled(true);
config.getFooterConfig().setFontSize(8);
config.getFooterConfig().setPageNumberFormat("— %d —");
JQuickPdfFactory factory = new JQuickPdfFactory(config);
factory.bindAll(data);
byte[] pdf = factory.executeResource(TEMPLATE);
Files.write(new File(OUT_FILE).toPath(), pdf);
System.out.println("已生成:" + OUT_FILE + "(" + pdf.length + " 字节)");
}
/** 人民币金额转票据大写(元角分,末尾补「整」)。 */
private static String toChineseAmount(BigDecimal amount) {
String[] digits = {"零", "壹", "贰", "叁", "肆", "伍", "陆", "柒", "捌", "玖"};
String[] units = {"", "拾", "佰", "仟"};
String[] sections = {"", "万", "亿", "万亿"};
long cents = amount.setScale(2, BigDecimal.ROUND_HALF_UP)
.movePointRight(2).longValue();
if (cents == 0) {
return "零元整";
}
long yuan = cents / 100;
int jiao = (int) (cents % 100 / 10);
int fen = (int) (cents % 10);
StringBuilder sb = new StringBuilder();
if (yuan > 0) {
sb.append(toChineseSection(yuan, digits, units, sections)).append("元");
}
if (jiao == 0 && fen == 0) {
sb.append("整");
} else {
if (jiao > 0) {
sb.append(digits[jiao]).append("角");
} else if (yuan > 0) {
sb.append("零");
}
if (fen > 0) {
sb.append(digits[fen]).append("分");
}
}
return sb.toString();
}
/** 整数部分按四位分节转大写。 */
private static String toChineseSection(long value, String[] digits, String[] units, String[] sections) {
StringBuilder sb = new StringBuilder();
int sectionIndex = 0;
boolean needZero = false;
while (value > 0) {
int section = (int) (value % 10000);
StringBuilder part = new StringBuilder();
int unitIndex = 0;
boolean zeroInSection = false;
int temp = section;
while (temp > 0) {
int digit = temp % 10;
if (digit == 0) {
zeroInSection = true;
} else {
if (zeroInSection || (needZero && part.length() == 0 && sb.length() > 0)) {
part.insert(0, digits[0]);
}
part.insert(0, units[unitIndex]);
part.insert(0, digits[digit]);
zeroInSection = false;
needZero = false;
}
unitIndex++;
temp /= 10;
}
if (part.length() > 0) {
part.append(sections[sectionIndex]);
}
sb.insert(0, part);
needZero = section < 1000 && section > 0;
value /= 10000;
sectionIndex++;
}
return sb.toString();
}
}Minimal invocation (3 lines)
Skip the full test class — the core is these three lines: bind the chart SVG, execute the template, get the PDF bytes. Copy them straight into your project.
// config 可省略;svg 来自 JChartRendererFactory.renderChart(...),见下方完整源码
byte[] pdf = new JQuickPdfFactory(config).executeResource("demo/biz/finance/100_vat_special_invoice.txt");Template file · 100_vat_special_invoice.txt
An HTML-like template with inline CSS that renders to PDF once bound to data. The full template is below — copy it or download the raw file.
<pdf>
<body>
// 100 增值税专用发票(finance 领域第 1 项) 视觉主题:绯红·斑马·典式
// 版式组合:抬头=classic 信息区=grid2 明细表=striped 段落=box 签章=three 落款=right
// 主色 #962119 辅色 #279166 浅底 #F7F0F0
// 增值税专用发票:票头 + 购销双方四项信息 + 货物明细 + 价税合计 + 备注 +
// 发票专用章 / 骑缝章 / 二维码占位 + 收款人、复核、开票人栏。
// 抬头:classic
<h1 style="fontSize:18pt; bold:true; color:#6F0E08; textAlignment:center; characterSpacing:6pt">'增值税专用发票'</h1>
<p style="fontSize:7.5pt; color:#78838C; textAlignment:center; marginBottom:3px">'机器编号 '${machineNo}' 发票代码 '${invoiceCode}' 发票号码 '${invoiceNo}' 开票日期 '${issueDate}</p>
<lineSeparator style="color:#962119; thickness:1.5f; marginBottom:8px"></lineSeparator>
// 信息区:grid2
<table style="width:100%; fontSize:8.5pt; marginBottom:8px">
<tr>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'发票代码'</td>
<td style="width:34%; padding:4px; border:1px solid #D9BEBD">${invoiceCode}</td>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'发票号码'</td>
<td style="padding:4px; border:1px solid #D9BEBD">${invoiceNo}</td>
</tr>
<tr>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'开票日期'</td>
<td style="width:34%; padding:4px; border:1px solid #D9BEBD">${issueDate}</td>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'机器编号'</td>
<td style="padding:4px; border:1px solid #D9BEBD">${machineNo}</td>
</tr>
<tr>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'校验码'</td>
<td style="width:34%; padding:4px; border:1px solid #D9BEBD">${checkCode}</td>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'购买方名称'</td>
<td style="padding:4px; border:1px solid #D9BEBD">${buyerName}</td>
</tr>
<tr>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'购买方识别号'</td>
<td style="width:34%; padding:4px; border:1px solid #D9BEBD">${buyerTaxNo}</td>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'购买方地址电话'</td>
<td style="padding:4px; border:1px solid #D9BEBD">${buyerAddressPhone}</td>
</tr>
<tr>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'购买方开户行账号'</td>
<td style="width:34%; padding:4px; border:1px solid #D9BEBD">${buyerBankAccount}</td>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'销售方名称'</td>
<td style="padding:4px; border:1px solid #D9BEBD">${sellerName}</td>
</tr>
<tr>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'销售方识别号'</td>
<td style="width:34%; padding:4px; border:1px solid #D9BEBD">${sellerTaxNo}</td>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'销售方地址电话'</td>
<td style="padding:4px; border:1px solid #D9BEBD">${sellerAddressPhone}</td>
</tr>
<tr>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; bold:true; border:1px solid #D9BEBD">'销售方开户行账号'</td>
<td style="width:34%; padding:4px; border:1px solid #D9BEBD">${sellerBankAccount}</td>
<td style="width:16%; padding:4px; backgroundColor:#F7F0F0; border:1px solid #D9BEBD">' '</td>
<td style="padding:4px; border:1px solid #D9BEBD">' '</td>
</tr>
</table>
<table style="width:100%; marginBottom:3px">
<tr>
<td style="padding:4px; backgroundColor:#962119; color:white; bold:true; fontSize:10pt; characterSpacing:2pt">'货物或应税劳务、服务明细'</td>
</tr>
</table>
<table style="width:100%; fontSize:8pt; marginBottom:8px">
<tr>
<th style="width:20%; padding:4px; backgroundColor:#962119; color:white; bold:true; textAlign:center; border:1px solid #962119">'货物或应税劳务名称'</th>
<th style="width:9%; padding:4px; backgroundColor:#962119; color:white; bold:true; textAlign:center; border:1px solid #962119">'规格型号'</th>
<th style="width:6%; padding:4px; backgroundColor:#962119; color:white; bold:true; textAlign:center; border:1px solid #962119">'单位'</th>
<th style="width:8%; padding:4px; backgroundColor:#962119; color:white; bold:true; textAlign:center; border:1px solid #962119">'数量'</th>
<th style="width:12%; padding:4px; backgroundColor:#962119; color:white; bold:true; textAlign:center; border:1px solid #962119">'单价'</th>
<th style="width:15%; padding:4px; backgroundColor:#962119; color:white; bold:true; textAlign:center; border:1px solid #962119">'金额'</th>
<th style="width:8%; padding:4px; backgroundColor:#962119; color:white; bold:true; textAlign:center; border:1px solid #962119">'税率'</th>
<th style="padding:4px; backgroundColor:#962119; color:white; bold:true; textAlign:center; border:1px solid #962119">'税额'</th>
</tr>
<tr>
<td style="padding:4px; textAlign:left; border:1px solid #D9BEBD">${itemName1}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemSpec1}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemUnit1}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemQty1}</td>
<td style="padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemPrice1}</td>
<td style="padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemAmount1}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemRate1}</td>
<td style="padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemTax1}</td>
</tr>
<tr>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:left; border:1px solid #D9BEBD">${itemName2}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemSpec2}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemUnit2}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemQty2}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemPrice2}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemAmount2}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemRate2}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemTax2}</td>
</tr>
<tr>
<td style="padding:4px; textAlign:left; border:1px solid #D9BEBD">${itemName3}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemSpec3}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemUnit3}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemQty3}</td>
<td style="padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemPrice3}</td>
<td style="padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemAmount3}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemRate3}</td>
<td style="padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemTax3}</td>
</tr>
<tr>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:left; border:1px solid #D9BEBD">${itemName4}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemSpec4}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemUnit4}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemQty4}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemPrice4}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemAmount4}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemRate4}</td>
<td style="backgroundColor:#F7F0F0; padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemTax4}</td>
</tr>
<tr>
<td style="padding:4px; textAlign:left; border:1px solid #D9BEBD">${itemName5}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemSpec5}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemUnit5}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemQty5}</td>
<td style="padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemPrice5}</td>
<td style="padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemAmount5}</td>
<td style="padding:4px; textAlign:center; border:1px solid #D9BEBD">${itemRate5}</td>
<td style="padding:4px; textAlign:right; border:1px solid #D9BEBD">${itemTax5}</td>
</tr>
<tr>
<td style="padding:4px; bold:true; backgroundColor:#F7F0F0; textAlign:center; border:1px solid #962119">'合 计'</td>
<td style="padding:4px; backgroundColor:#F7F0F0; border:1px solid #962119">'—'</td>
<td style="padding:4px; backgroundColor:#F7F0F0; border:1px solid #962119">'—'</td>
<td style="padding:4px; backgroundColor:#F7F0F0; border:1px solid #962119">'—'</td>
<td style="padding:4px; backgroundColor:#F7F0F0; border:1px solid #962119">'—'</td>
<td style="padding:4px; bold:true; backgroundColor:#F7F0F0; textAlign:right; border:1px solid #962119">'¥'${totalAmount}</td>
<td style="padding:4px; backgroundColor:#F7F0F0; border:1px solid #962119">'—'</td>
<td style="padding:4px; bold:true; backgroundColor:#F7F0F0; textAlign:right; border:1px solid #962119">'¥'${totalTax}</td>
</tr>
</table>
// 段落:box
<table style="width:100%; marginBottom:6px">
<tr>
<td style="width:150px; padding:5px; backgroundColor:#F7F0F0; bold:true; fontSize:9.5pt; color:#6F0E08; border:1px solid #D9BEBD">'价税合计'</td>
<td style="padding:5px; fontSize:9pt; border:1px solid #D9BEBD">${totalLine}</td>
</tr>
</table>
<table style="width:100%; marginBottom:6px">
<tr>
<td style="width:150px; padding:5px; backgroundColor:#F7F0F0; bold:true; fontSize:9.5pt; color:#6F0E08; border:1px solid #D9BEBD">'备注'</td>
<td style="padding:5px; fontSize:9pt; border:1px solid #D9BEBD">${remark}</td>
</tr>
</table>
// 签章区:three
<!-- 签章占位区:后续加盖电子公章 / 骑缝章 / 打印二维码 -->
<table style="width:100%; fontSize:8pt; marginBottom:8px">
<tr>
<td style="width:33%; padding:4px; bold:true; textAlign:center; color:#962119; border:1px dashed #962119">'(公章 / 财务专用章占位)'</td>
<td style="width:33%; padding:4px; bold:true; textAlign:center; color:#962119; border:1px dashed #962119">'(骑缝章 / 二维码占位)'</td>
<td style="width:33%; padding:4px; bold:true; textAlign:center; color:#962119; border:1px dashed #962119">'(二维码占位)'</td>
</tr>
<tr>
<td style="width:33%; padding:4px; textAlign:center; color:#78838C; border:1px dashed #962119">'单位名称:'${sellerName}</td>
<td style="width:33%; padding:4px; textAlign:center; color:#78838C; border:1px dashed #962119">'骑缝章沿右边线骑缝加盖'</td>
<td style="width:33%; padding:4px; textAlign:center; color:#78838C; border:1px dashed #962119">'扫码验真'</td>
</tr>
<tr>
<td style="width:33%; padding:4px; textAlign:center; color:#78838C; border:1px dashed #962119">'签章日期:'${issueDate}</td>
<td style="width:33%; padding:4px; textAlign:center; color:#78838C; border:1px dashed #962119">'二维码打印于右上角方框内'</td>
<td style="width:33%; padding:4px; textAlign:center; color:#78838C; border:1px dashed #962119">'尺寸 22mm×22mm'</td>
</tr>
</table>
// 落款:right
<!-- 落款栏 -->
<table style="width:100%; fontSize:9pt; marginTop:6px">
<tr>
<td style="width:24%; padding:4px">' '</td>
<td style="width:38%; padding:4px; textAlign:center; color:#6F0E08">'收款人:'${payee}</td>
<td style="width:38%; padding:4px; textAlign:center; color:#6F0E08">'复核:'${reviewer}</td>
<td style="padding:4px; textAlign:center; color:#6F0E08">'开票人:'${drawer}</td>
</tr>
</table>
</body>
</pdf>More demos in this group
The PDF, preview image, template and source code on this page were all produced by a real JQuick-Pdf run and are free to copy into your own project.