ExportAsFixedFormat Method
ExportAsFixedFormat Method
ExportAsFixedFormat Method
ExportAsFixedFormat Method
Saves a document as PDF or XPS format.
expression.ExportAsFixedFormat(OutputFileName, ExportFormat, OpenAfterExport, OptimizeFor, Range, From, To, Item, IncludeDocProps, KeepIRM, CreateBookmar
ks, DocStructureTags, BitmapMissingFonts, UseISO19005_1, FixedFormatExtClassPtr)
Parameters
OutputFileName Required String The path and file name name of the new PDF or XPS file.
OpenAfterExport Optional Boolean Opens the new file after exporting the contents.
Range Optional WdExportRange 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.
From Optional Long Specifies the starting page number, if the Range parameter is set
to wdExportFromTo.
To Optional Long Specifies the ending page number, if the Range parameter is set
to wdExportFromTo.
Item Optional WdExportItem Specifies whether the export process includes text only or includes text
with markup.
IncludeDocProps Optional Boolean Specifies whether to include document properties in the newly exported
file.
KeepIRM Optional Boolean Specifies whether to copy IRM permissions to an XPS document if the
source document has IRM protections. Default value is True.
CreateBookmarks Optional WdExportCreateBookmarks Specifies whether to export bookmarks and the type of bookmarks to
export.
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.
BitmapMissingFonts Optional Boolean Specifies 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_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.
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 the Office (2007) Fixed-Format Export Feature" on MSDN.
Remarks
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.
Presentation.ExportAsFixedFormat Method
(PowerPoint)
Publishes a copy of a Microsoft PowerPoint presentation as a file in a fixed format, either PDF or XPS.
expression .ExportAsFixedFormat(Path, FixedFormatType, Intent, FrameSlides, HandoutOrder, OutputType, PrintHiddenSlides, PrintRange, RangeType, SlideSh
owName, IncludeDocProperties, KeepIRMSettings)
Parameters
Name Required/Optional Data Type Description
FixedFormatType Required PpFixedFormatType The format to which the slides should be exported.
FrameSlides Optional MsoTriState Whether the slides to be exported should be bordered by a frame.
HandoutOrder Optional PpPrintHandoutOrder The order in which the handout should be printed.
KeepIRMSettings Optional Boolean Whether the IRM settings should also be exported. The default is True.
DocStructureTags Optional Boolean Whether to include document structure tags to improve document accessibility.
The default is True.
BitmapMissingFonts Optional Boolean Whether to include a bitmap of the text. The default is True.
UseISO19005_1 Optional Boolean Whether the resulting document is compliant with ISO 19005-1 (PDF/A). The
default is False.
ExternalExporter Optional Variant A pointer to an Office add-in that implements the IMsoDocExporter COM
interface and allows calls to an alternate implementation of code. The default is a
null pointer.
Remarks
The ExportAsFixedFormat method is the equivalent of the Save As PDF or XPS command on the Office menu in the PowerPoint user interface. The method creates
a file that contains a static view of the active presentation.
Constant Description
msoFalse The default. Does not display the embedded object (or link) as an icon.
Constant Description
Constant Description
Constant Description
ppPrintHandoutHorizontalFirst Prints handouts with consecutive slides displayed horizontally first (in horizontal rows).
ppPrintHandoutVerticalFirst The default. Prints handouts with consecutive slides displayed vertically first (in vertical columns).
The OutputType parameter value can be a combination of one or more of these PpPrintOutputType constants.
Constant Description
ppPrintOutputBuildSlides
Constant Description
Constant Description
Parameters
Name Required/Optional Data type Description
FixedFormatType Required PpFixedFormatType The format to which the slides should be exported.
FrameSlides Optional MsoTriState Whether the slides to be exported should be bordered by a frame.
HandoutOrder Optional PpPrintHandoutOrder The order in which the handout should be printed.
KeepIRMSettings Optional Boolean Whether the IRM settings should also be exported. The default is True.
DocStructureTags Optional Boolean Whether to include document structure tags to improve document
accessibility. The default is True.
BitmapMissingFonts Optional Boolean Whether to include a bitmap of the text. The default is True.
UseISO19005_1 Optional Boolean Whether the resulting document is compliant with ISO 19005-1 (PDF/A).
The default is False.
IncludeMarkup Optional Boolean Whether the resulting document should include associated pen marks.
ExternalExporter Optional Variant A pointer to an Office add-in that implements the IMsoDocExporter COM
interface and allows calls to an alternate implementation of code. The
default is a null pointer.