05-05-2010 09:10 AM
I have to read a pdf file which will be bundled in my cod .I have no idea how to do that.i have search forum but nothing usefull found.
can anyone help me out with some sample code for reading pdf in blackberry application
Solved! Go to Solution.
05-05-2010 09:50 AM
There is nothing in the RIM API for reading/rendering a PDF file.
Why do you need a PDF embedded in the application? Might be easier to embed HTML content and display it using BrowserField, or much easier to embed text and display it using a RichTextField.
05-05-2010 09:58 AM
If you really need PDF I did a search for you:
05-06-2010 01:09 AM
For reading pdf and render it in your application, you have get the information of all pdf headers. You can get the input stream of pdf by adding that file as a resource. Then you have to read that stream just as any pdf reader. Sound very complex....
Also, there are some third party libraries which allows such rendering but I am not sure which all will be supported in blackberry as they mainly uses java swing apis.
Still have a look at this link... may be this will help you.
05-06-2010 03:54 AM
You can use BlackberryInternetService to open a pdf it will display you pdf in browser ..........for that you can store pdf in server & browse pdf link ..................But must install BlackberryInternetService on the device , also it will view the pdf only on device not on simulator