Is there any possible way to convert a pdf into image and show them on a image view?
PDF isn't made up of images, they're vectors.
Tcouple open-source java PDF to Image converters though like:
http://www.jpedal.org/
http://code.google.com/p/pdfonejava/
Related
I have to make a fragment that can display different elements (PDF, jpg, jpeg, etc). The user can take the file from the gallery or the internal storage and i know how to do to display a PDF or a Image from gallery but i do not know how can I combine to display all this types.
Thanks!
You need to create your own widget to display these files or use several special widgets and display the content in them in turn.
How to embed a compressed image (e.g. PNG, JPEG, etc.) in an Android PdfDocument?
When writing the image into the Page's canvas, it is encoded as a bitmap, instead I'd like to embed the image compressed as it is.
I've just realised I can do this with iText:
itext images tutorial
Unfortunately, it does not allow to draw views in a canvas like the native PdfDocument class. So I need to create a PDF without images with PdfDocument and put a placeholder for such images. Then I need to open the pdf file with iText and append the images at the placeholders' location.
I am searching for a library, sdk whatever, which converts a pdf (from a link) to an image, and then I want to share this image without leaving any trails (random png images left of the conversion or a downloaded pdf file somewhere). Has anyone any ideas on what and how I should do this?
Thanks in advance.
If you open pdf into webview then follow this step
WebView pdfWebView;
Bitmap pdfBitMap;
pdfWebView.buildDrawingCache();
pdfBitMap = pdfWebView.getDrawingCache();
Hello I am looking at a type of drawing application that views images and would like to mark them up. Now I can load regular jpg and pngs, but our client has images in a pdf file. I am wondering if there is a way to display these on an image view in android.
I am creating a magazine app, in which iI wan't to add zoom functionality. How can I do this?
Convert .pdf file into .png and then either load that .png file into ImageView or in WebView and apply zoom functionality.