Member
Member
disrupter   2008-03-13, 18:35
#1

Is it possible to upload a PDF and have it shown as a PDF icon? I've searched but couldn't find anything about this

Administrator
Administrator
acrylian   2008-03-13, 18:47
#2

No, only JPEG, GIF and PNG (plus flv, mov and 3gp movies) are supported.

If you would like that feature please open a feature request tickt on the trac for it. We will then add it to our poll.

Member
Member
disrupter   2008-03-13, 18:57
#3

Ok, is it something long to implement? I'm a developer so I can try to figure it out.. What PHP files handles file types? Many thanks

Member
Member
aitf311   2008-03-13, 20:11
#4

Could you please let us know what type of use this could have? I'm sure you have something in mind but I cannot think of it.

Member
Member
sbillard   2008-03-13, 20:13
#5

It most likely would be a complex implementation. Currently, images are handled by the class-image.php and i.php files. These are really oriented to processing images, not PDF files. They do such things as thumbnail creation and image resizing. I don't know much about displaying PDF, but I imagine that it would take quite a bit different approach.

Developer
Developer
trisweb   2008-03-13, 22:31
#6

It would be very similar to ZenVideo (and could be implemented as another extension to it) - it would just load the PDF plugin for the file, not too hard.

Member
Member
sbillard   2008-03-13, 23:29
#7

So, I suppose this would be a good solution for http://www.zenphoto.org/support/topic.php?id=2479&replies=11#post-14762

Member
Member
jsumners   2008-03-14, 15:31
#8

If I interpret the original post correctly, he wants ZP to basically be a file server. He doesn't necessarily want the contents of the PDF to be displayed. Just an icon that indicated the file is a PDF, and if you click on it then it will download.

Developer
Developer
trisweb   2008-03-14, 19:10
#9

Hmm.... I would say to this (and the Text file support) a 'no' until we can somehow implement a generic file-type support architecture. Then people can add whatever types/renderers they want as plugins. Call it a 2.0 feature.

Member
Member
jackdaw   2008-05-18, 11:15
#10

I just like to add that I would like to see pdf-support too, but I wouldn't mind if I needed to create the thumbs myself. Ofcourse it would be great if sometime in the future a pdf-file could be shown on a seperate page in a seperate theme file (like pdf.php, next to album.php), but perhaps workarounds could already be made now...

Personally I would like to use pdf's as containers for ideas/concepts/layout-examples/brochures/instructions etc. I could upload the pdf files manually and also the images. From the images ZP can make thumbs, just as it does now. The PDF-files with the same name in that same folder would/should be ignored. Then the only thing needed would be a slightly different template file (lets call it pdf.php), and in it we should have just the link to the pdf-file instead of a link to the image, like this (I'm not a coder ):

getPDFLinkURL()); ?>" title="">

or

$_zp_current_image->name.".pdf"; ?>" title="">

Administrator
Administrator
acrylian   2008-05-18, 14:59
#11

Actually I don't see exactly why you are not using images of those pdfs then, but feel free to open a feature request ticket.

Member
Member
jackdaw   2008-05-18, 17:57
#12

The pdf's I have in mind would consist of at least two pages, front and back, but perhaps even more. For instance, let's say I have designed a chair. I would like to show that chair, including the sketch, example images from different angles and different colors. Ofcourse this can all be done from within WordPress using pages etc. (and perhaps I will do that), but it would be nice to have albums with projects/ideas that people can browse and print.

Considering the reply's so far I don't know if it's usefull to start a new ticket for this. Perhaps first wait for some more input and reply's from other visitors .

Administrator
Administrator
acrylian   2008-05-18, 18:14
#13

A ticket does not hurt...:-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.