This feature is a tool that empowers users to export a file as PDF in both Word, PowerPoint, Excel and Outlook. The command opens the save file dialog and when the user press "OK", the file will be saved as a PDF with the options defined in the parameters.
CMD
<Cmd case="BaseExtensions:export-to-pdf"/>
Parameters
All parameters are optional.
title
Define the title of the exported file. The string for the title is expandable, so you can either define what the title of the document should or use environmental variables, meaning that the title will be based on a document property. The syntax for doing so is %CustProp|X%
or %BuiltProp|X%
(depending on the location of the document property) where the X
refers to the name of the document property.
CurrentDirectory
Use this parameter and define its value to true
if the save file dialog should be opened in the document's current directory. Otherwise, it will open in the Documents folder.
IncludeDocProps
Define whether the command should include property data in PDF metadata using true
or false
. Default value is false
.
This parameter is supported in Word, PowerPoint, Excel and Outlook.
OpenAfterExport
Define whether the PDF file should open after it has been saved using true
or false
. Default value is true
.
This parameter is supported in Word, PowerPoint, Excel and Outlook.
DocStructureTags
Define whether there should be document structure tags for accessibility using true
or false
. Default value is false
.
This parameter is supported in Word, PowerPoint and Outlook.
UseISO19005_1
Define whether the file should be saved as PDF/A compliant using using true
or false
. Default value is false
.
This parameter is supported in Word, PowerPoint and Outlook.
BitmapMissingFonts
Bitmap text when fonts may not be embedded. This can be either true
or false
. Default value is false
.
This parameter is supported in Word, PowerPoint and Outlook.
CreateBookmarks
Use this parameter to include bookmarks by defining an enum value from this list. Default value is wdExportCreateNoBookmarks
.
This parameter is supported in Word and Outlook.
PageRange
Define the page range of the document that should be exported using an enum value from this list. Default value is wdExportAllDocument
.
If this parameter is defined with the enum value wdExportFromTo
, use the following parameters:
From
to specify the starting page. Default value is 1
.
To
to specify the ending page. Default value is 1
.
This parameter is supported in Word and Outlook.
FrameSlides
Define whether the slides that are to be exported should be bordered by a frame using true
or false
. Default value is false
.
This parameter is supported in PowerPoint.
HandoutOrder
Specify the page layout order in which slides appear on printed handouts that show multiple slides on one page using an enum value from this list. Default value is ppPrintHandoutVerticalFirst
.
This parameter is supported in PowerPoint.
OutputType
Define a value that indicates which component (slides, handouts, note pages, or an outline) of the presentation is to be printed using an enum value from this list. Default value is ppPrintOutputSlides
.
This parameter is supported in PowerPoint.
PrintHiddenSlides
Define whether hidden slides should be included using using true
or false
. Default value is true
.
This parameter is supported in PowerPoint.
IgnorePrintAreas
Define whether the print area set by the user should be ignored using true
or false
. Default value is true
.
This parameter is supported in Excel.
Comments
0 comments
Article is closed for comments.