The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Document.ExportAsFixedFormat Method

Office 2007
Saves a document as PDF or XPS format.

Version Information
 Version Added:  Word 2007


expression.ExportAsFixedFormat(OutputFileName, ExportFormat, OpenAfterExport, OptimizeFor, Range, From, To, Item, IncludeDocProps, KeepIRM, CreateBookmarks, DocStructureTags, BitmapMissingFonts, UseISO19005_1, FixedFormatExtClassPtr)

expression   An expression that returns a Document object.


NameRequired/OptionalData TypeDescription
OutputFileNameRequiredStringThe path and file name name of the new PDF or XPS file.
ExportFormatRequiredWdExportFormatSpecifies either PDF or XPS format.
OpenAfterExportOptionalBooleanOpens the new file after exporting the contents.
OptimizeForOptionalWdExportOptimizeForSpecifies whether to optimize for screen or print.
RangeOptionalWdExportRangeSpecifies 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.
FromOptionalLongSpecifies the starting page number, if the Range parameter is set to wdExportFromTo.
ToOptionalLongSpecifies the ending page number, if the Range parameter is set to wdExportFromTo.
ItemOptionalWdExportItemSpecifies whether the export process includes text only or includes text with markup.
IncludeDocPropsOptionalBooleanSpecifies whether to include document properties in the newly exported file.
KeepIRMOptionalBooleanSpecifies whether to copy IRM permissions to an XPS document if the source document has IRM protections. Default value is True.
CreateBookmarksOptionalWdExportCreateBookmarksSpecifies whether to export bookmarks and the type of bookmarks to export.
DocStructureTagsOptionalBooleanSpecifies 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.
BitmapMissingFontsOptionalBooleanSpecifies whether to include a bitmap of the text. Set this parameter to True when font licenses do not 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.
UseISO19005_1OptionalBooleanSpecifies 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.
FixedFormatExtClassPtrOptionalVariantSpecifies 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 the Office (2007) Fixed-Format Export Feature" on MSDN.


You can save as a PDF or XPS file from a 2007 Microsoft Office system program only after you install an add-in. For more information, search for "Enable support for other file formats, such as PDF and XPS" on Office Online.

Community Additions