Rediger

Del via


Presentation.ExportAsFixedFormat2 method (PowerPoint)

Publishes a copy of a Microsoft PowerPoint presentation as a file in a fixed format, either PDF or XPS.

Syntax

expression.ExportAsFixedFormat2 (Path, FixedFormatType, Intent, FrameSlides, HandoutOrder, OutputType, PrintHiddenSlides, PrintRange, RangeType, SlideShowName, IncludeDocProperties, KeepIRMSettings, DocStructureTags, BitmapMissingFonts, UseISO19005_1, IncludeMarkup, ExternalExporter)

expression A variable that represents a Presentation object.

Parameters

Name Required/Optional Data type Description
Path Required String The path for the export.
FixedFormatType Required PpFixedFormatType The format to which the slides should be exported.
Intent Optional PpFixedFormatIntent The purpose of the export.
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.
OutputType Optional PpPrintOutputType The type of output.
PrintHiddenSlides Optional MsoTriState Whether to print hidden slides.
PrintRange Required PrintRange The slide range. Can be set to Nothing for all
RangeType Optional PpPrintRangeType The type of slide range.
SlideShowName Optional String The name of the slide show.
IncludeDocProperties Optional Boolean Whether the document properties should also be exported. The default is False.
KeepIRMSettings Optional Boolean Whether the IRM settings should also be exported.

If FixedFormatType is PpFixedFormatTypePDF, this flag determines if labels and IRM settings should 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.

Return value

VOID

Remarks

The KeepIRMSettings 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.

If the presentation is not fully downloaded, this method fails and an error occurs. For more information about the Partial Documents, see Work with Partial Documents.

PrintRange is a required parameter, but may be set to Nothing. If not supplied, the call will fail with a Type mismatch

See also

Manage sensitivity labels in Office apps

Work with Partial Documents

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.