|
| 1 | +--- |
| 2 | +title: Document.ExportAsFixedFormat3 method (Word) |
| 3 | +keywords: vbawd10.chm158007848 |
| 4 | +f1_keywords: |
| 5 | +- vbawd10.chm158007848 |
| 6 | +api_name: |
| 7 | +- Word.Document.ExportAsFixedFormat3 |
| 8 | +ms.assetid: fe248ff2-0a2a-b10e-fed9-d5bfb73ff1b2 |
| 9 | +ms.date: 03/26/2025 |
| 10 | +ms.localizationpriority: medium |
| 11 | +--- |
| 12 | + |
| 13 | +# Document.ExportAsFixedFormat3 method (Word) |
| 14 | + |
| 15 | +Saves a document in PDF or XPS format. |
| 16 | + |
| 17 | +## Syntax |
| 18 | + |
| 19 | +_expression_.**ExportAsFixedFormat3** (_OutputFileName_, _ExportFormat_, _OpenAfterExport_, _OptimizeFor_, _Range_, _From_, _To_, _Item_, _IncludeDocProps_, _KeepIRM_, _CreateBookmarks_, _DocStructureTags_, _BitmapMissingFonts_, _UseISO19005\_1_, _OptimizeForImageQuality_, _ImproveExportTagging_, _FixedFormatExtClassPtr_) |
| 20 | + |
| 21 | +_expression_ An expression that returns a **[Document](Word.Document.md)** object. |
| 22 | + |
| 23 | + |
| 24 | +## Parameters |
| 25 | + |
| 26 | +|Name|Required/Optional|Data type|Description| |
| 27 | +|:-----|:-----|:-----|:-----| |
| 28 | +| _OutputFileName_|Required| **String**|The path and file name of the new PDF or XPS file.| |
| 29 | +| _ExportFormat_|Required| **[WdExportFormat](Word.WdExportFormat.md)**|Specifies either PDF or XPS format.| |
| 30 | +| _OpenAfterExport_|Optional| **Boolean**|Opens the new file after exporting the contents.| |
| 31 | +| _OptimizeFor_|Optional| **[WdExportOptimizeFor](Word.WdExportOptimizeFor.md)**|Specifies whether to optimize for screen or print.| |
| 32 | +| _Range_|Optional| **[WdExportRange](Word.WdExportRange.md)**|Specifies whether the export range is the entire document, the current page, a range of text, or the current selection. The default is to export the entire document.| |
| 33 | +| _From_|Optional| **Long**|Specifies the starting page number, if the _Range_ parameter is set to **wdExportFromTo**.| |
| 34 | +| _To_|Optional| **Long**|Specifies the ending page number, if the _Range_ parameter is set to **wdExportFromTo**.| |
| 35 | +| _Item_|Optional| **[WdExportItem](Word.WdExportItem.md)**|Specifies whether the export process includes text only or includes text with markup.| |
| 36 | +| _IncludeDocProps_|Optional| **Boolean**|Specifies whether to include document properties in the newly exported file.| |
| 37 | +| _KeepIRM_|Optional| **Boolean**|Specifies whether to copy IRM permissions to an XPS document if the source document has IRM protections.</br></br>If _ExportFormat_ is _wdExportFormatPDF_, this flag also specifies whether to copy labels to the PDF.</br></br>Default value is **True**.| |
| 38 | +| _CreateBookmarks_|Optional| **[WdExportCreateBookmarks](Word.WdExportCreateBookmarks.md)**|Specifies whether to export bookmarks and the type of bookmarks to export.| |
| 39 | +| _DocStructureTags_|Optional| **Boolean**|Specifies whether to include extra data to help screen readers, for example information about the flow and logical organization of the content. Default value is **True**.| |
| 40 | +| _BitmapMissingFonts_|Optional| **Boolean**|Specifies whether to include a bitmap of the text. Set this parameter to **True** when font licenses don't permit a font to be embedded in the PDF file. If **False**, the font is referenced, and the viewer's computer substitutes an appropriate font if the authored one is not available. Default value is **True**.| |
| 41 | +| _UseISO19005\_1_|Optional| **Boolean**|Specifies whether to limit PDF usage to the PDF subset standardized as ISO 19005-1. If **True**, the resulting files are more reliably self-contained but may be larger or show more visual artifacts due to the restrictions of the format. Default value is **False**.| |
| 42 | +| _OptimizeForImageQuality_|Optional| **Boolean**|Specifies whether to downsample images or keep their original quality. If **True**, the resulting files will have better image quality but may be larger. Default value is **False**.| |
| 43 | +| _ImproveExportTagging_|Optional| **Boolean**|Specifies whether to enable improved accessbility tagging. For more information, see the Remarks section. Default value is **False**.| |
| 44 | +| _FixedFormatExtClassPtr_|Optional| **Variant**|Specifies a pointer to an add-in that allows calls to an alternate implementation of code. The alternate implementation of code interprets the EMF and EMF+ page descriptions that are generated by the applications to make their own PDF or XPS. For more information, see [Extending Office PDF Export](../../pdf/extendingofficepdfexport).| |
| 45 | + |
| 46 | +## Remarks |
| 47 | + |
| 48 | +The _KeepIRM_ parameter behaves specially for PDF. It controls the retention of both labels and encryption to the output file. For more information, see [Manage sensitivity labels in Office apps](/microsoft-365/compliance/sensitivity-labels-office-apps?view=o365-worldwide#pdf-support&preserve-view=true). |
| 49 | + |
| 50 | +The _ImproveExportTagging_ parameter enables improved accessibility tagging for footnotes/endnotes, block quotes, inline quotes, captions, title, comments, equations, layout tables, and nodes (paragraphs, lists, tables) spanning pages. When using the _FixedFormatExtClassPtr_ parameter, your handling of footnotes/endnotes, comments, layout tables, and nodes spanning pages will have to be updated when migrating from **Document.ExportAsFixedFormat2**. See the "Post-processing tips" section within the "HrBeginStructNode" section in [Extending Office PDF Export](../../pdf/extendingofficepdfexport) for more information. |
| 51 | + |
| 52 | +## Requirements |
| 53 | + |
| 54 | +Microsoft 365 Beta Channel 16.0.18720.20000 |
| 55 | + |
| 56 | +### See also |
| 57 | +[Manage sensitivity labels in Office apps](/microsoft-365/compliance/sensitivity-labels-office-apps?view=o365-worldwide#pdf-support&preserve-view=true) |
| 58 | + |
| 59 | +[Extending Office PDF Export](../../pdf/extendingofficepdfexport) |
| 60 | + |
| 61 | +[!include[Support and feedback](~/includes/feedback-boilerplate.md)] |
0 commit comments