Ive installed ViewerJS on a webpage of my website and cant seem to figure out how to upload pdf files and make them viewable in the pdf reader...I studied some documentation over uploading files and how it says that I can uncomment the couch upload directory to point to a folder on my website but dont want to do that for every thing I upload....The code I have so far is
the original code for ViewerJs states that I have to put the document in the ViewerJS folder.
Is there a way to upload pdf documents to this and make this work?
- Code: Select all
<cms:editable name='PDF_document' label='Downloadable PDF File' desc='Upload the file here'
type='file' />
- Code: Select all
<iframe style="text-align:center;" src="<a href="<cms:show my_document />" >Download file</a>" width='400' height='300' allowfullscreen webkitallowfullscreen></iframe>
the original code for ViewerJs states that I have to put the document in the ViewerJS folder.
- Code: Select all
<iframe style="text-align:center;" src="/ViewerJS/pdf/odoc.pdf" width='400' height='300' allowfullscreen webkitallowfullscreen></iframe>
Is there a way to upload pdf documents to this and make this work?