Overview
In the classic M-Files Desktop, document previews can appear differently depending on whether the document is opened from search results or from a view. This is expected behavior and is caused by the different preview mechanisms used in these contexts.
Applies to: Classic M-Files Desktop. M-Files Web and the new M-Files Desktop always show a PDF rendition in the preview pane.
Previewing documents from search results
When a document is selected from search results in the classic M-Files Desktop, M-Files first converts the preview to PDF. This enables search-related preview functionality, such as hit highlighting. PDF conversion is only used for supported file formats, as described in the M-Files user guide page Document Preview.
Previewing documents from a view
When a document is selected from an M-Files view, PDF conversion is not used by default. Instead, the preview works similarly to Windows File Explorer and relies on the preview handlers available on the workstation. For example, previewing an Excel file uses the installed preview handler capable of displaying Excel documents. If no suitable preview handler is available, the Preview tab shows an error message.
To control whether PDF conversion is used when previewing documents from views, use the following client-side registry setting.
| Registry key: | HKEY LOCAL MACHINE\SOFTWARE\Motive\M-Files\<version>\Client\Common\NonVaultSpecifics\PreviewHandlers\<extension with dot, e.g. .docx> |
| Value name: | UseConvertedViewerFile |
| Data type: | REG DWORD |
| Value data: | 0: never use viewer file conversion 1: always use viewer file conversion default (i.e. missing value): file is converted if applicable and conversion is required e.g. due to hit highlighting |
To apply the setting to all file types, configure the registry key without the file extension:
| Registry key: | HKEY LOCAL MACHINE\SOFTWARE\Motive\M-Files\<version>\Client\Common\NonVaultSpecifics\PreviewHandlers\ |
Important: Disabling PDF previews also disables hit highlighting in document previews!
