Hello/Hi/Greetings,
How can I put pdf files in piwigo.
Thanks for the help
Albert.
(Copy here your environment details, found on your Piwigo page [Administration > Tools > Maintenance])
Piwigo URL: http://www.beeldbanksteenwiek.nl
Offline
I would first enable the upload of all types of files : In the plugin Local files Editor, 1st tab, add this line :
$conf['upload_form_all_types'] = true;
Now you can upload pdf, just the way you do with photos.
But Piwigo does not build the thumbnail for a pdf, you have to create it an then upload it with the help of the plugin Photo update.
One of my Piwigos proposes over 400 pdf, it's rather easy see: https://photos.revestou.fr/index?/categ … eux_revest
So beforehand, you must have installed 2 plugins in your Piwigo : Local Files Editor and Photo Update.
Then you will have to create a thumbnail for your PDF, in order to upload it once you have uploaded the pdf file.
Last edited by Katryne (2024-10-05 11:54:19)
Offline
If the PDF file is not displayed:
Please insert the following code into the LocalFiles Editor. I have the value set to 20. By default the value is 5
$conf['pdf_viewer_filesize_threshold'] = 5;
Have a nice and stress-free day
Olaf
Offline