Fetching pdf pages as bitmap with selectable text/content - android

I have searched a lot of libraries but can't find any exact solution for this. Actually i am working on an app in which i have to fetch pages (or content) as bitmap from pdf but also have to add the highlight property on content of pdf. I tried iText library, its good in fetching text and images from pdf. But it fetch text and images separately, not as exactly same as it is in pdf itself. I saw an app "Moon+Reader App". This app also fetch pdfs from our device an open them as shown in screenshot. Its a bitmaop image of a pdf page with selectable text. Is there any library which can do this, or if any other methodology is used then please help me by answer.

Related

Converting PDF to text and reading it from android

I am currently working on an android application that will allow people to read the constitution, issue is I have only managed to get my hands on a soft copy pdf document. Ideally, I wanted an API that would allow me to fetch the document by Topic, issue or paragraph, I thought of multiple ways of getting the job done
1. Is by putting the document on the server, when user opens the app it downloads the pdf and allows them to read it(Problem with this is I won't be able to mess with the content like bold some text etc).
2. Is copying the content of the pdf into the databse and just fetching the text with a query(issue with this is I wont be able to do pagination given I put the content in one field)
Here is the link to the Constitution I needed a way in which I can load the data from the database in a way that I will be able to paginate, load a single paragraph or topic at a time. Can anyone whose been in a similar situation help me figure out the best way possible.
You don't to convert it to text, you can integrate MuPdf in your application check this answer I've found integrating pdf reader

How can I hide particular words in a PDF on Android?

I am trying to implement reading a PDF within an Android app. I want to hide particular words from it.
I have downloaded a PDF viewer library. It opens properly but am not sure whether it is possible to hide words in that document.
Is there any library available that can do this?
Please help me!
Thanks in advance.
May be you are using muPDF Library and seriously muPDF or other libraries which renders PDF uses Images for rendering data they are not in text format so the modifications you want will be pretty hard to do so.
You may use iText Library for this, itext Library can extract the text from PDF and then you show the text as you want.

How to load multiple images and text from server

I am developing one application for one real state website. I have to display dynamic content from web I mean website display lots of images and description about the property. i need to populate images and their description in list view similar to flipkart android app do. I don't know how to proceed as of now i have thought i can download all images to sd card and get the text from json and then populate both in custom list. but i feel this is not a good approach as images grows in no it would take memory. Please give me some pointer how i should proceed to get better results.
Thanks in advance. Any help will appreciated.
You can simply use custom listview with image and text.
Get image and text both from web.
You can also refer to this link.

pdf view in gridview android

I would like to ask advise if displaying pdf inside gridview instead of image is possible. I have tried to display list of websites in gridview using webview. Now, I want to make it a list of pdf files inside gridview. Normally same with if you open your folder in your linux laptop and have the thumbnails of your pdf, things like that. I want to achieve that in my application. I would really appreciate any of your advice, no codes needed cause i will handle it my self. I just want to have some theories. thanks and HAPPY NEW YEAR GUYS
I think what you're going to have to is convert the pdf's into a bitmap first, then load into an ImageView, check out this post and also look into other pdf rendering libraries for Android.

Produce thumbnail from pdf on Android

I am managing a bunch of PDF files in an android application maintaining a list of records in a SQLite database as well as storing the pdf files on the external storage.
Now I would like to present a thumbnail of the first page of the pdf in my list view as part of each cell representing a pdf.
I am aware of libraries like iText, fop.. on the JavaSE side that can render a PDF but I would rather not delve into embedding a large library like that. On a similar approach I would also rather not embed a native PDF viewer like droidreader, apv or vudroid.
Otherwise I could of course also get it rendered on a server via some webservice but that is a lot of headache as well.
I am already using intents to get the pdf's displayed for the user so I was thinking it would be great if I could get a thumbnail via a intent call as a result somehow. However I found nothing on the web (e.g. on openintents) that indicates something like that exists ..
So I am a bit at a loss on what to do? What do you think is the best approach to get these thumbnails into my app? Are there any public intents available? Or did I just totally miss something and the SDK provides features for that already (it should imho but currently does not)?
You are going to get a lot faster resopnse rasterizing the PDFs on the server and there are lots of libraries to do this in C, Java, Php.

Categories

Resources