pdf files

Create a filter to display the existance of pdf's in an album. Displays a generic image instead so users can access them. Since i use ZP as a private area for my photography i needed a way to give users access to these files.

Anyways the details are on my blog @ http://draekko.org/?e=59

Thanks for ZP.

Have fun.

Comments

  • Created a filter to be able to use pdf files in an album. The file won't display anything but a generic icon showing its a pdf file. Based it off the class-video files.

    The file is available on my blog @ http://draekko.org/?e=59

    Enjoy
  • Also did not read either the forum rules presented when you registered or the note on the posting form. Thus the double post which is both unnecessary and anoying.

    Base your plugin (not filter) on the class-textobject plugin as text most closely resembles PDF files. You have to generate the appropriate HTML for a browser to display the PDF file. Since we don't know what you generated we can't make much of a comment.
  • Sorry you're right on not reading the rules and the double post. My bad. Go ahead and delete it all if you want. *shrugs*

    As for what i did well it doesn't generate anything. It does display a place holder image. It lets me add pdf files to an album. I needed that. My users know what to look for so its not an issue. Sorry for using the wrong terminology.

    Figured it could be useful to others.

    Sorry to have wasted my time.
  • acrylian Administrator, Developer
    You did not waste your time. Whatever fits your needs is okay and we appreaciate every third party plugin. Therefore we will add that to our extensions section.

    However, sbillard is right as it should be based on the text_object plugin as this is the template plugin for adding other filetypes like pdf. You might want to do it right, don't you..;-)
  • My apologies, i was very tired and it was the end of a long frustrating day. Since my comments weren't visible, i made some assumptions.

    As explained on my blog i do not need to render anything as i let the browser & plugin handle that. All i needed was a place holder image to let people know that the file was a pdf and to click the download link beneath it. Personally i don't know that i'd want to have my server take the kind of hit that converting a multipage pdf document would have.

    So i spent part of the morning looking at both class-video.php and class-textobject.php as well as what i did. Not sure what i would need to change to make it right. Both are very similar.
  • acrylian Administrator, Developer
    Ok, I see, I probably answered a little to fast as well and I did not look at your plugin itself. Making PDFs display like images would only be possible if using Imagick as that seems to support PDFs in general (never tried that). Therefore for GD it probably won't work anyway. Probably your plugin fits its purpose..;-)

    (Regarding invisible comments. New user's post are moderated as stated and are approved if we don't find spam. So everything gets visible then as we of course don't edits comments itself..;-))
  • Exactly my thoughts as well.

    lol yeah i figured it out after my second post. like i said my head was lost somewhere, there wasn't any sunshine there ;)

    I need a vacation somewhere with drinks that have little hats or something :D
Sign In or Register to comment.