1、预览是正常的
2、导出pdf
3、代码
expPDF() {
var ARJS = Core;
var PDF = PdfExport;
var settings = {
info: {
title: '快递单',
author: 'GrapeCity inc.',
},
pdfVersion: "1.7"
}
var pageReport = new ARJS.PageReport();
pageReport.load(this.reportTemplate)
.then(function () { return pageReport.run() })
.then(function (pageDocument) { return PDF.exportDocument(pageDocument, settings) })
.then(function (result) { result.download('arjs-pdf') });
}
|