BaseExtension has gotten a new feature/option when using either the extended-pdf-export or email-active function called includeMarkup.This functionality was originally requested by one of our clients Thommessen.
This function expects a boolean value, true or false. As the name hints at, it makes it possible to include markups from your document, such as comments or changes made in a document if track changes is turned on, when exporting to pdf or attaching a pdf in a mail.
This is the syntax of the feature:
includeMarkup="true"
It can be included in either:
<Cmd case="BaseExtensions:extended-pdf-export" includeMarkup="true"/>
or:
<Cmd case="BaseExtensions:email-active" includeMarkup="true"
Here is a example of extended-pdf-export being implemented in a button with includeMarkup set to true.
<Button label="Export as PDF (Including Markup)" icon="MergeToNewPublication" size="large" showInPowerPoint="false" showInExcel="false" dependecy="BaseExtensions">
<Cmd case="BaseExtensions:extended-pdf-export" includeMarkup="true"/>
</Button>
Here is an example of it being implemented for attaching to mail. Remember to update BaseExtensions as this is a relatively new functionality. Also note that in order for this function to work for mails you must first save the document you wish to attach locally, since it does not function with cloud folders such as OneDrive.
<Button label="Attach to mail as PDF (Including Markup)" icon="MergeToNewPublication">
<Cmd case="BaseExtensions:prompt-input">
<Prompts>
<PromptText Title="Filename" Message="Write the name of the attached PDF file" ValidInput="Regex" RegexValidation="[\w\sæøå]*"/>
</Prompts>
<Commands>
<Cmd case="BaseExtensions:email-active" includeMarkup="true" disablePrompt="true" attachPdf="true" pdfFileName="$PromptText$" onlyPdf="true"/>
</Commands>
</Cmd>
</Button>
Comments
0 comments
Article is closed for comments.