Skip to content

Commit 73b0613

Browse files
committed
Add Word.Document.ExportAsFixedFormat3.md
Word.Range.ExportAsFixedFormat3.md Word.Selection.ExportAsFixedFormat3.md
1 parent d37d09f commit 73b0613

File tree

3 files changed

+124
-0
lines changed

3 files changed

+124
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
title: Range.ExportAsFixedFormat3 method (Word)
3+
keywords: vbawd10.chm157155831
4+
f1_keywords:
5+
- vbawd10.chm157155831
6+
api_name:
7+
- Word.Range.ExportAsFixedFormat3
8+
ms.assetid: d1cf9c7d-f2f3-1962-eccf-262568a56ad9
9+
ms.date: 03/26/2025
10+
ms.localizationpriority: medium
11+
---
12+
13+
14+
# Range.ExportAsFixedFormat3 method (Word)
15+
16+
Saves a portion of a document as PDF or XPS format.
17+
18+
19+
## Syntax
20+
21+
_expression_.**ExportAsFixedFormat3** (_OutputFileName_, _ExportFormat_, _OpenAfterExport_, _OptimizeFor_, _ExportCurrentPage_, _Item_, _IncludeDocProps_, _KeepIRM_, _CreateBookmarks_, _DocStructureTags_, _BitmapMissingFonts_, _UseISO19005\_1_, _OptimizeForImageQuality_, _ImproveExportTagging_, _FixedFormatExtClassPtr_)
22+
23+
_expression_ An expression that returns a **[Range](Word.Range.md)** object.
24+
25+
26+
## Parameters
27+
28+
|Name|Required/Optional|Data type|Description|
29+
|:-----|:-----|:-----|:-----|
30+
| _OutputFileName_|Required| **String**|The path and file name of the new PDF or XPS file.|
31+
| _ExportFormat_|Required| **[WdExportFormat](Word.WdExportFormat.md)**|Specifies either PDF or XPS format.|
32+
| _OpenAfterExport_|Optional| **Boolean**|Opens the new file after exporting the contents.|
33+
| _OptimizeFor_|Optional| **[WdExportOptimizeFor](Word.WdExportOptimizeFor.md)**|Specifies whether to optimize for screen or print.|
34+
| _ExportCurrentPage_|Optional| **Boolean**|Specifies whether to export the current page. **True** exports the entire page. **False** exports only the current selection.|
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. 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+
47+
## Remarks
48+
49+
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).
50+
51+
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.
52+
53+
54+
## Requirements
55+
56+
Microsoft 365 Beta Channel 16.0.18720.20000
57+
58+
### See also
59+
[Manage sensitivity labels in Office apps](/microsoft-365/compliance/sensitivity-labels-office-apps?view=o365-worldwide#pdf-support&preserve-view=true)
60+
61+
[Extending Office PDF Export](../../pdf/extendingofficepdfexport)
62+
63+
[!include[Support and feedback](~/includes/feedback-boilerplate.md)]
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
title: Selection.ExportAsFixedFormat3 method (Word)
3+
keywords: vbawd10.chm158663692
4+
f1_keywords:
5+
- vbawd10.chm158663692
6+
api_name:
7+
- Word.Selection.ExportAsFixedFormat3
8+
ms.assetid: 0fc22f07-6a21-d04e-e90b-73e33f5e4f36
9+
ms.date: 03/26/2025
10+
ms.localizationpriority: medium
11+
---
12+
13+
14+
# Selection.ExportAsFixedFormat3 method (Word)
15+
16+
Saves the current selection as PDF or XPS format.
17+
18+
19+
## Syntax
20+
21+
_expression_.**ExportAsFixedFormat3** (_OutputFileName_, _ExportFormat_, _OpenAfterExport_, _OptimizeFor_, _ExportCurrentPage_, _Item_, _IncludeDocProps_, _KeepIRM_, _CreateBookmarks_, _DocStructureTags_, _BitmapMissingFonts_, _UseISO19005\_1_, _OptimizeForImageQuality_, _ImproveExportTagging_, _FixedFormatExtClassPtr_)
22+
23+
_expression_ An expression that returns a **[Selection](Word.Selection.md)** object.
24+
25+
26+
## Parameters
27+
28+
|Name|Required/Optional|Data type|Description|
29+
|:-----|:-----|:-----|:-----|
30+
| _OutputFileName_|Required| **String**|The path and file name of the new PDF or XPS file.|
31+
| _ExportFormat_|Required| **[WdExportFormat](Word.WdExportFormat.md)**|Specifies either PDF or XPS format.|
32+
| _OpenAfterExport_|Optional| **Boolean**|Opens the new file after exporting the contents.|
33+
| _OptimizeFor_|Optional| **[WdExportOptimizeFor](Word.WdExportOptimizeFor.md)**|Specifies whether to optimize for screen or print.|
34+
| _ExportCurrentPage_|Optional| **Boolean**|Specifies whether to export the current page. **True** exports the entire page. **False** exports only the current selection.|
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

Comments
 (0)