0
我需要在不同的PDF页面中呈现多种类型的页脚和页眉。我怎样才能做到这一点? 我只能使用所有PDF页面中的单一页脚。播放框架1.2.4在多个PDF页面中有多个页脚
我需要在不同的PDF页面中呈现多种类型的页脚和页眉。我怎样才能做到这一点? 我只能使用所有PDF页面中的单一页脚。播放框架1.2.4在多个PDF页面中有多个页脚
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);