WordReplaceBookmarkWithImage

Description

This activity replaces a specific bookmark in a Word document with a given image. The result of the activity is the updated file.


Image

MaxHeight InArgument<Float?>

The maximum height in pixel of the image.

MaxWidth InArgument<Float?>

The maximum width in pixel of the image.

ReplacementImage InArgument<IFileValue> REQUIRED

The document to replace the bookmark.


Input

BookmarkName InArgument<String> REQUIRED

The name of the bookmark to be replaced.

Document InArgument<IFileValue> REQUIRED

The Word document where you want to replace bookmark.


Misc


Settings

InsertPageBreakAfter InArgument<Boolean>

Default is False. Set this property to True if yoy want to insert a page break after the inserted image.

InsertPageBreakBefore InArgument<Boolean>

Default is False. Set this property to True if yoy want to insert a page break before the inserted image.

PreserveBookmark InArgument<Boolean>

Default is False. Set this property to True if you don't want the activity to delete the bookmark when replaced.

ThrowIfBookmarkNotFound InArgument<Boolean>

Default is True. Set this property to False if you don't want the activity to throw an exception when the bookmark is not found.

ThrowIfBookmarkNotSet InArgument<Boolean>

Default is True. Set this property to False if you don't want the activity to throw an exception when the bookmark is not been replaced. Set this property to False whenever you don't want to replace all bookmarks in a document because otherwise the activity will throw an exception if a value is not provided for each bookmark in the Word file. Set it to True if you want instead to check if all bookmarks are replaced.