使用 NetOffice 创建 PDF/A 文件

Create a PDF/A file with NetOffice

我用以下方法创建我的 PDF 文件:

ExportAsFixedFormat(pdffilename, WdExportFormat.wdExportFormatPDF);

但我需要 PDF/A PDF。有没有办法用 NetOffice 来完成这项工作?

使用带有 useISO19005_1 参数的 Document.ExportAsFixedFormat 重载。

newDocument.ExportAsFixedFormat(pdfFilename, WdExportFormat.wdExportFormatPDF,
  false, WdExportOptimizeFor.wdExportOptimizeForPrint,
  WdExportRange.wdExportAllDocument, 0, 0,
  WdExportItem.wdExportDocumentContent, true, false,
  WdExportCreateBookmarks.wdExportCreateNoBookmarks, true, true,
  useISO19005_1: true);