2014-06-26 36 views

回答

0
MultiPDFDocuments documents = new MultiPDFDocuments(); 
PDFDocument document = new PDFDocument(); 
document.template = "@template1"; 
Options options = new Options(); 
options.pageSize = IHtmlToPdfTransformer.A4L; 
document.options = options; 
documents.add(document); 
document = new PDFDocument(); 
document.template = "@template2"; 
options = new Options(); 
options.pageSize = IHtmlToPdfTransformer.A4L; 
document.options = options; 
documents.add(document); 
File file = new File("C:/Users/PDF.pdf"); 
PDF.writePDF(file,documents);