跳转到主要内容

exportToPDF

Description

将 Scheduler 导出为 PDF 格式

exportToPDF: (export?: any) => void

Parameters

  • export - (optional) object - 包含导出设置的对象(详见下文说明)

Example

scheduler.exportToPDF();

// 或者
scheduler.exportToPDF({
name: "myscheduler.pdf"
});

scheduler.exportToPDF({
name:"myscheduler.pdf",
format:"A4",
orientation:"portrait",
zoom:1,
header:"<h1>My company</h1>",
footer:"<h4>Bottom line</h4>",
server:"https://myapp.com/myexport/scheduler"
});

Details

注释

该方法属于 export 扩展,请确保页面中已引入该扩展:

<script src="https://export.dhtmlx.com/scheduler/api.js"></script>  

更多信息请参阅 Export to PDF 文章。

exportToPDF() 方法接受一个包含多种可选属性的对象,用于自定义导出:

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.