I'm making an app in android.I'm able to write text and create a new PDFs and also can read existing PDFs.
But i'm not getting solution to edit the existing PDFs.
Editing the PDFs in my app is the target which i have to achieve.
I tried to convert it in String but its in encoded form.Have searched a lot But i don't want to use any paid libraries or jar.
Generally PDFs are not designed to be editable and do not contain structure information. You can use some tools like Acrobat to try to put structure back in but it is a huge task.
Related
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
I want to edit an existing pdf/png image on android studio and having hard time.
I have a pdf/png file which I want to edit some areas in it, save it and share it as a png/pdf.
I've searched for different libraries for pdf but most of them have an expensive license which I can't afford.
Is there any other way to edit and share the file?
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 have an android app where I will be capturing various information in different forms and storing into the SQL lite database for tracking/viewing purposes. I want to give the option of exporting the information into a RTF/PDF/Doc and give the option of sending it thru email.
I looked at various similar questions posted here earlier but didnt get a definitive answer. I saw the Android PDF Writer library http://sourceforge.net/projects/apwlibrary/ but this seems very basic. I considered iText but I think there would be issues with licensing if in future I want to sell this app..
Basically I want to define a template document with a structure that will be copied and content added to it based on what the user wants to export...
Any help is greatly appreciated...
I wanted some elegant solution where I can store a template in the assets folder and replace whatever I want to create the output document. Finally I went with html. I created a html template and put it into the assets folder. After that it was as simple as read assets, read db, do string.replaceall and write the output html and email it out.....
OpenOffice.org's Universal Network Objects (UNO) interface to programmatically generate MS-Word compatible documents (*.doc), as well as corresponding PDF documents.
its basically java so it should work on android too.
I am using iText library to create PDF documents.
I am able to create and add contents to the document programmetically like "new Paragraph("This is new pdf")".
My question are
Can I add the
contents by typing something in the
document and save it as PDF using
iText library? As like we are
creating word documents...?
Suppose if I want to insert an image in my
document, it will be done by picking
an image from my External storage
using a dialog box...?
Is it possible using iText library in
andriod...?
These are multiple questions. I'll try answering them all. However it seems one answer to all your questions is, first try, study, learn what iText is about, then ask questions
but my question is can i able to add
the contents by typing something in
the document and save it as PDF using
iText library? like we are creating
word documents...?
No, you have to do it programmatic. iText is not a WYSIWYG tool like Adobe Acrobat or other GUI-PDF Editors.
suppose if i want to insert a image in my document, it will be done by picking an image from my External storage using a dialog box...
If you create the dialog box and the code logic to add it to a PDF in the iText way it is possible.
is it possible using iText library in
android...?
The general available iText is not fit for Android. You can contact iText Sales department to know more about iText Android.