赞
踩
package com.ymy.util;/*@author ymy
@DESCRIPTION ${DESCRIPTION}
@create 2019/4/12*/
import com.ymy.model.*;importjava.io.ByteArrayOutputStream;importjava.io.File;importjava.io.FileOutputStream;importjava.util.ArrayList;importcom.itextpdf.text.pdf.AcroFields;importcom.itextpdf.text.pdf.BaseFont;importcom.itextpdf.text.pdf.PdfReader;importcom.itextpdf.text.pdf.PdfStamper;public classPDFTempletTicket {privateString templatePdfPath;privateString ttcPath;privateString targetPdfpath;privateTicket ticket;publicPDFTempletTicket() {super();
}publicPDFTempletTicket(String templatePdfPath, String ttcPath,
String targetPdfpath, Ticket ticket) {this.templatePdfPath=templatePdfPath;this.ttcPath=ttcPath;this.targetPdfpath=targetPdfpath;this.ticket=ticket;
}public void templetTicket(File file) throwsException {
PdfReader reader= newPdfReader(templatePdfPath);
<Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。