homejoomlablogministries
articles
guides
tutorials
all
forum

Learning Joomla! for the first time? Buy the Joomla! 1.5 Essential training CD-ROM or watch it on Lynda.com.

 

I am speaking at OpenCamp 2010 in Addison, TX


Welcome to Joseph LeBlanc's Joomla development forum. This forum is primairly intended to discuss the development of components I've authored, such as the podcasting suite and Daily Message tutorial. Although I happily answer general questions about Joomla, you may get quicker answers by searching the Joomla forums.

Due to spam abuse, you must register to post in the forums. However, you are allowed to browse the forums without registration. Commercially-oriented, off-topic messages are $100 per word, thank you for understanding!






FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Uploading PDFs and viewing them (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 5
TOPIC: Uploading PDFs and viewing them
#3079
lornat (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Uploading PDFs and viewing them 1 Year, 2 Months ago Karma: 0  
Hi,

I have a need to upload and allow users to view existing PDFs. I had a look at the documentation and it looks like I might be able to do something with the JDocumentPDF class however I dont know how to use it. If anyone has any code snippets they could share using this or anything else please let me know,. Also I beleive I would have to upload the PDF file first but I am not sure. I woudl also need to store the PDF in the database or at least a reference to it.

Thx.
Lorna
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3091
jleblanc (Admin)
Admin
Posts: 1040
graph
User Offline Click here to see the profile of this user
Re:Uploading PDFs and viewing them 1 Year, 1 Month ago Karma: 32  
Hi Lorna,

JDocumentPDF is really used to create PDFs more than it is to manage ones that get uploaded. You should just be able to code your component to accept file uploads and treat the links to the PDFs like you would any other uploaded file.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3100
lornat (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:Uploading PDFs and viewing them 1 Year, 1 Month ago Karma: 0  
Hi,
Thanks for the tip but I dont know how to do this. Once the file is uploaded and a reference to it is in my custom table, I have a list of these documents for the user to choose from (that part is done). I want the user to be able to click on the document name and load Adobe Acrobat with the file. I dont know how to launch the adobe reader with the file. Can you send me a snippet of code, is this just a redirect and if so can you send me a sample.

Thx.
Lorna
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3101
jleblanc (Admin)
Admin
Posts: 1040
graph
User Offline Click here to see the profile of this user
Re:Uploading PDFs and viewing them 1 Year, 1 Month ago Karma: 32  
Are you saying that the part you don't have is...

a) where files get uploaded and saved
b) where people can get links to download them

?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3103
lornat (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:Uploading PDFs and viewing them 1 Year, 1 Month ago Karma: 0  
b) what code do I write to download the pdf and open it with the Adobe Reader. Is this simply a redirect? Please send a sample.

Thx.
L
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3105
lornat (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Re:Uploading PDFs and viewing them 1 Year, 1 Month ago Karma: 0  
Hi,
Never mind. I guess I was making more work for myself. It is simply a link or redirect.

Thx.
L
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop