#1 2024-10-05 10:31:11

Albert Steenwiek
Member
Steenwijk
2024-07-18
1

How pdf files on pwigo

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

 

#2 2024-10-05 11:52:53

Katryne
Member
2016-12-03
417

Re: How pdf files on pwigo

I would first enable the upload of all types of files : In the plugin Local files Editor, 1st tab, add this line :

Code:

$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)


https://album.chauvigne.info/ v.15.1.0  PHP: 8.2.25
https://balades.comoni.org/  v.15.1.0 PHP: 8.2.25
Système d'exploitation: Linux - Hébergeur 1&1-Ionos - MySQL: 5.7.42
Bibliothèque graphique: External ImageMagick 6.9.11-60

Offline

 

#3 2024-11-20 07:13:17

Schneider-Fotografie
Member
Berlin
2023-04-16
69

Re: How pdf files on pwigo

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

Code:

$conf['pdf_viewer_filesize_threshold'] = 5;

Have a nice and stress-free day
Olaf


-Schneider-Fotografie- Galerie
----------------------------------
  Piwigo 15.3.0 / PHP: 8.3.12

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact