setPreviewSettings method
Enables/disables the document picture preview for the user,
so they can check if it's all ok before send it.
Create a PreviewSettings
element with the desired settings.
By default the preview is disabled.
Implementation
void setPreviewSettings(PreviewSettings previewSettings) {
this.previewSettings = previewSettings;
}