Hello Fellow Developers,
I am developing a PDF annotation for Android Tablet and would like to open/display PDF file within my android application to edit. I have done research on how to open PDF file and most methods and libraries suggest to convert the PDF to a image file. I don't want to convert to image file because the image file pixelate when I increase resolution. Now the problem I am facing are.
1) Which method I must use to display the pdf file within my application to annotate
2) I also want to implement text reflow in my app
Please suggest.
Thank you.
Regards,
Marcello
If you will read pdf file specification, you will find, that pdf have no any type of flow. Actually each letter just is strictly coordinated on a page. Therefore:
It is simple to annotate any content of pdf document by the coordinates the mark on an any rendering content.
It is impossible to use pdf as a "what you see is what you get" editor. Even it is impossible to perfectly correct parse pdf to editable and back. It is the basically WRONG idea to do, because PDF is just the representation, not the design.
Funniest part of the pdf is text. Especially - unicode text. I want to say, that catching non-english text from the pdf file will return unpredictable results.
Thank you!
Related
I just want to view them not work on them so I don't mind an ipynb to PDF or HTML converter on android
I usually just convert them from my laptop or upload them to colab before printing them as PDF but those options aren't available to me right now, any app suggestions methods are welcome.
There are ipynb viewers available on playstore, although I have not tried them.
I generally just change the extension to txt from ipynb, but this will give you a bunch of currently useless information also.
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.
I'm working in an app, and I need which the app can generate a PDF file with the app data saved in XML's.
I need make this in one of two ways, but I don't know how, the ways are:
Generate a PDF from a existing HTML
Edit an existing PDF and add text.
I don't know how iText or droidText can help me.
Any suggestion?
How about having a look at this StackOverflow post?
Android - how to convert html to pdf?
I'm guessing your question requires a similar, if not exactly identical approach.
(By the way, performing a Google search on "generate PDF from HTML android" yielded 305,000,000 other results, many of which seem legitimate answers on your question...)
I want to convert an image taken from my camera to a PDF so that I can programmatically read the text in it. I saw some links which suggested I use itext jars. I wanted to know the best approach for my requirement. Thanks in advance guys.
For image to PDF there are may libraries available like iText, droidtext so you can use it. But for your actual requirement is
so that I can programmatically read the text in it.
to read
text from your image file instead of converting it to PDF file, I suggests you to use OCR library for it. There are many Android-OCR Libraries ( tesjeract, mezzofanti ) which are used for read text from image.
I am developing an android application using google maps. I have to display some text information and some pictures related to the text. For this purpose I have a .pl file where the information is written as kml.
I know how to extract information using sax parser from an xml, however I am not able to decide as how to go ahead with .pl file.
I thought of downloading them into sd card and saving them as xml extension so the usual xml parsing can be used. But I don't know how to do this.
Kindly help or if there is some other way it can be done please tell.
Thanks,
Astha
KML is Keyhole Markup Language (KML) is an XML notation for expressing geographic annotation
Download sample project which can parse kml data from the following url.
http://www.warriorpoint.com/blog/downloads/
Thanks
Deepak