|
|
|
Learning Joomla! for the first time? Buy the Joomla! 1.5 Essential training CD-ROM or watch it on Lynda.com.
|
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!
|
Uploading PDFs and viewing them (1 viewing) (1) Guest
Favoured: 5
|
|
|
TOPIC: Uploading PDFs and viewing them
|
lornat (User)
Fresh Boarder
Posts: 8
|
|
Uploading PDFs and viewing them 8 Months, 2 Weeks 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
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Uploading PDFs and viewing them 8 Months 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.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
lornat (User)
Fresh Boarder
Posts: 8
|
|
Re:Uploading PDFs and viewing them 8 Months 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
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:Uploading PDFs and viewing them 8 Months 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
?
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
lornat (User)
Fresh Boarder
Posts: 8
|
|
Re:Uploading PDFs and viewing them 8 Months 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
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
lornat (User)
Fresh Boarder
Posts: 8
|
|
Re:Uploading PDFs and viewing them 8 Months ago
|
Karma: 0
|
|
Hi,
Never mind. I guess I was making more work for myself. It is simply a link or redirect.
Thx.
L
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|