If you make sure your pdf’s do not contain malicious content, and no other users are permitted to upload pdf’s… i would dare to do it.
Also, make sure your imagemagick version actually processes pdf’s, unfortunalely my hosting provider installed a version that no longer works, so i can no longer add pdfs to the doc site.
Thanks Jacob. That gives us a lot to think about actually.
I wonder if you might consider adding support for PDF’s similar to that for Audio and Video? For those we upload 2 files, one for the actual media file and one for a thumbnail image? PDF’s are very important to our project and we would consider contributing to the cost of this.
support for PDF’s similar to that for Audio
This is a good idea.
It may take a few weeks, but i will work on it.
Thank you. Looking forward to seeing what you come up with. I think it ill be a very useful feature. 🙂
Got it working (dev version, not released yet, but available here:)
https://downloads.wp.xz.cn/plugin/wp-photo-album-plus.zip
If you want to test it, install it like explained here:
https://wppa.nl/docs-by-subject/development-version/
You can upload a pdf on the upload page box A or B
You will no longer get an errormessage, but a warning, telling you that you can upload a .jpg image of the same name thereafter. (.png does not work yet)
I see this on your WPPA Beta Test. This is very nice. I am looking forward to seeing it in a live release. Our Web manager is reluctant to use a beta version of the plugin. Thanks!
This is released at 7.0.03, dec 04.
See https://wppa.nl/changelog/
If you have no ImageMagick installed or your ImageMagick version does not convert .pdf to .jpg, you can now upload a self created image file (e.g. screenshot) after the upload of the .pdf file. Names must be equal except the file-extension. .jpg and .png files are supported for this purpose.
The ‘document’ documentation page will be updated asap.
Ah, very good!
One thing though. When I select the Thumbnail of a PDF from an Album, the Thumbnail is enlarged but there doesn’t appear to be a PDF to navigate. Perhaps I don’t have some setting ticked in the configuration tables.
Actually, now that I look at the documentation page, I see I needed to add some coding. It now works exactly the way I have envisioned.
Thank you very much for this!