Adding a pdf file instead of an image in the joomla mediamanager - pdf

I would like to add a pdf file to the joomla media manager, and then select it as a full article image, so that I can get the link using json and echo it for every product, without having to manually add a pdf link every time.
However when I want to link the pdf file to an article, and browse to the folder where the pdf file is located, it says: 'No images found'.
Is it possible to add pdf files to an article instead of an image, using the media manager?
This is where I browse to my pdf file:
https://i.gyazo.com/8ef91fc2d1ea26a36abcfb22bcc0cd25.png

Hello #twan,
I can see only solution to your question is : PDF Embed Plugin from Techjoomla
Try using this extension and let me know if it works for you or not.
Thanks,
Mrunal.

Related

Android camera, take picture(s) and save as multipage PDF, then upload to server via <input type="file" />

I have a webform with and want to open it on smartphone - than take pictures of some documents which need to be merged in one PDF, and on the end this file need to be uploaded to server.
My solution is to use Google Drive to upload PDF (scan) to GDrive and then somehow download this file from gdrive to server via some sort of widget (any links appreciate) installed on website.
Maybe someone have a better idea?
I know its late but my answer might help others. I also face the same challenge and implemented a custom solution based on Javascript and Since you are using web form so this solution will perfectly fits on your need.
You have to use JSPdf javascript library, JSPdf provide you pdf object in your browser and you can upload it download it and there are many other thing to play with.
First you have to initialize JSPdf object as per your requirement. I am creating PDF with page size width:500px and height 500px.
pdf = new jsPDF("l", "pt", [500,500]);
Simply when you will take picture from camera you will have each picture in form of base64, that base64 format you have to insert in JSPdf object
pdf.addImage(imgData, 'JPEG', 0, 0);
you can repeat the above code to add pictures from camera as much as you want, at the back-end these images are compiling and creating pdf document where each page have each images in sequence.
Once you are done, you can get PDF object in form of base64 object using below code that you can upload to any server.
pdf.output('datauristring')
above is only pdf part, you can find complete working example including camera part here Javascript Component to Scan Document

About how to upload PDF file and show it

I can't figure out how to do like this page http://service.citroen.com/ddb/modeles/c5/c5_c5/ed10-07/de_de/4_21_c5-al-ed10-2007.pdf I embed usually the PDF from slideside in my site but people cant dowload from because they need to have an accoount. So technically how ? Thanks
You will need a PDF viewer component for displaying the PDF. You will have to configure the PDF component so as to limit download and print options.
http://www.gnostice.com/nl_article.asp?id=329&t=Display_PDF_without_saving_file_to_disk_in_WinForms_and_ASP_NET

how to use pdf.js or viewerJS to display pdf in browser

i need a tuto about using pdf.js or viewejs to view pdf via browser. I found viewerjs.org but it doesn't help.
Any help thx in advance.
Try out pdf.js as it is very simple. Download the latest version here.
To show the pdf files traverse to web/viewer.html and it should load its default pdf.
As to the question about how to show your pdf's use: viewer.html?file=relative/path/to/your/pdf.
Say for example inside the web folder(the one in which viewer.html is there) of your pdf.js you create a directory say named pdfFiles and in it you add a pdf named say mypdf.pdf in it then to display it use: viewer.html?file=pdfFiles/mypdf.pdf and it will display it.
Almost all browsers are supported. Look here to know more about which all browsers are currently being supported.

how to add a pdf file and view it in a Page based application

Actually i want to load a pdf file and view it like similar to page based application.So can anyone suggest me how to do it with sample code.I searched i didnt find any documentation or any sample code.
You want to create eBook type of app. https://github.com/brow/leaves the link example shows how to load pdf file and show. and if you want to add more animation like page curl then refer example here http://blog.steventroughtonsmith.com/2010/02/apples-ibooks-dynamic-page-curl.html

Display the actual attached file not as a link in Drupal 6?

I enabled File Upload module in Drupal 6, so if I create a content like Page, I would be able to upload a file like an image or a document. I attached an image in the content and when I viewed it, it shows not the image but the link to it. What would I do to display the actual image? Thanks.
you will get the image path in node-contentType.tpl.php and page.tpl.php. In any of the pages you can display image rather than displaying the image path.