Pdf thumbnails preview

From the features page of the nextcloud website:
Text file editing and thumbnail previews of PDF, images, text files, office files and more
How does this work because in my setup it won’t display pdf thumbs?

You have to enable and configure the preview in config.php. :wink:

https://docs.nextcloud.com/server/12/admin_manual/configuration_files/previews_configuration.html

https://docs.nextcloud.com/server/12/admin_manual/configuration_server/config_sample_php_parameters.html#previews

thanks for the answer, I should have mentioned i added this to the config.php (located in /var/snap/nextcloud/current/nextcloud/config) already:

‘enable_previews’ => true,
‘enabledPreviewProviders’ => array(
‘OC\Preview\PNG’,
‘OC\Preview\JPEG’,
‘OC\Preview\PDF’
),

I run the snap package and is still on version 11 of nextcloud i think. Should i install extra packages to make this work?

same here on NC 14. every thumbnail except pdf works.

And for clarification:
Is it:
‘enabledPreviewProviders’ => array(
1 => ‘OC\Preview\PNG’,
2 => ‘OC\Preview\JPEG’,
),

or

‘enabledPreviewProviders’ =>
array (
0 => ‘OC\ \Preview\ \PNG’,
1 => ‘OC\ \Preview\ \JPEG’,
2 => ‘OC\ \Preview\ \GIF’,
),
?
please note the numbers of " \ " (without a space, because the forum software combines two slashs to one) and the position of “array”