Creating PDF File on Android [duplicate] - android

This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
How to create pdf files on android
I have a program that asks the user for information, then I need to put this information on a document/contract. I think I would like to create a pdf file with that information using itext (other alternate ways would also be appreciated). Although, I found that the itext version is not built (at least the free version) for android. My only solution is to create a server, send this information to a server that creates the pdf and then sends the pdf back to my phone. I have no idea how to do this. Or if anyone knows how to make an itext version for android.

Welcome to stackoverflow. Search your problem well before reaching out.
If you want to do this on the server you can create a simple PHP script that generates the PDF for you.
Just Google for PHP generate PDF and it will give you a lot of links.
If you want to do the pdf generation on the device you can leverage a java library that does it for you. try this stackoverflow link create pdf files on Android

Related

Steps for Bluetooth File Transfer implementation for Android

With BluetoothChat sample from Google sources as the base, what are the steps in implementing a file transfer function using that base code? I am trying to send a pdf or an image file (jpeg, jpg, png) to the other devices.
The chat functionality already works and I'm trying to implement a file transfer.
I can get the Uri and real file path (using PickIt library, ex path: storage/0/emulated/etc/etc) of the file that the user picked from the ACTION_GET_DOCUMENT intent. For the image file, I have found sources. They first convert it to a bitmap then to bytes and vice versa on the receiving device but haven't tried to do that yet. As for the pdf file, how would I implement it? I'm confused and questions similar to mine are mostly 7-10 years ago. Any help is appreciated. TIA!
P.S. I'm still new to Android development and I'm using Java.

Sqlite File Upload in WebView Without filechooser

May be like Duplicate, but I cant find most suitable answer for me. Many examples have explain about img files. like this, Android Java Upload File via WebView without FileChooser I want to upload .db file into my web server from my android application using Webview. but I cant understand what I want to do. Is that possible (upload .db file)? And if yes, what I want to do? Im new for android.

How to open documents located in Local Storage in android using WebView?

I have a doc/ppt/xls file located in my sd card. I want to open it without any third party app (i.e within my app itself) using webview. Though I am able to open documents by embedding it in google docs url like -
http://docs.google.com/gview?embedded=true&url=[filelinkHere]
But how to open a file located in internal or external storage in webview ?
Also, Suggest me any third party ALL-IN-ONE library for android to view all types of documents. I have tried ASPOS but it has few unresolved bugs and APACHE-POI is difficult to use.
I had the same issue few days ago .
i found Android PdfViewer best to view PDF files and Android PdfMyXml best to create pdf files in android.
For working with Word and Excel as a most reliable answer I suggest you to take a look at OliveDocLibrary .
If your documents are in cloud so there is an alternative way to display docx,pptx,pdf and such formats with a combination of Webview and googleDoc.
You might find other possible solutions in server-side machines or maybe a creative way!
Hope it help
You can integrate some library project to your project with which you can open the pdf file inside your app.
Reference :
https://github.com/tekinarslan/AndroidPdfViewer
https://github.com/JoanZapata/android-pdfview

Opening and reading pdf file from devices internal storage android

I have no idea where to start, and can't find a decent, or at least understandable tutorial how to do it. Im still new to android (and coding in any matter) but i need to create and app that opens a pdf file (CV in my case) and reads phone number and email from it. Any ideas (tutorial links) how to do it? :)
You could use iText library: http://itextpdf.com/
In FAQ, there's a question: "Can I extract/parse information from pdf ?"
http://support.itextpdf.com/node/27

Open a PDf file in android [duplicate]

This question already has an answer here:
Best way to include pdfs in an app
(1 answer)
Closed 9 years ago.
I am going to write an android app, which will contain a PDF file (included with in the application). My task is, when i click a button , pdf file should open . PDf file is placed in assets/raw (not sure where to place ).
Can any one help on this...
Thanks in advance
You can open pdf via webview and google docs.
You should use
WebView.loadUrl("http://docs.google.com/gview?embedded=true&url=www.site.com/file.pdf");
I would use a PDF Renderer to convert the file to a Bitmap. Otherwise, you would have to use another application to open the file, or the option that Walter gave you. Here is an example using a different library for rendering a PDF using Java.

Categories

Resources