导出文件

导出PDF

  1. /*
  2. * 目前只支持两个参数RangeType以及FrameSlides
  3. * @param: { Range?: WdExportRange, From?: number, To?: number, Item?: WdExportItem, IncludeDocProps?: bool }
  4. * WdExportRange: {
  5. * wdExportAllDocument: 0,
  6. * wdExportCurrentPage: 2,
  7. * wdExportFromTo: 3,
  8. * wdExportSelection: 1,
  9. * },
  10. * WdExportItem: {
  11. * wdExportDocumentContent: 0,
  12. * wdExportDocumentWithMarkup: 7
  13. * }
  14. */
  15. await demo.WordApplication().ActiveDocument.ExportAsFixedFormat()