Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
bhavesh_patel99
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

How to display PDF file in my application?

Hi All,

 

I need your help.

I want to display the PDF file in my application screen from one website.

 

For example, I have website - http://www.abc.com/files/xyz.pdf

I want to display pdf file in my application screen (not in default browser).

 

Could you please tell me how to do this?

 

Thanks,

 

Regards,

Bhavesh Patel

Please use plain text.
New Developer
d_bb
Posts: 33
Registered: ‎01-19-2010
My Device: RIM Storm
My Carrier: Verizon

Re: How to display PDF file in my application?

Hi bhavesh,

 

Are you trying to download th epdf file from any server and then want to open it in your app??

 

 

-Divya

Please use plain text.
Regular Contributor
bhavesh_patel99
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: How to display PDF file in my application?

Yes, exactly. I want to do the same.

Please use plain text.
Regular Contributor
bhavesh_patel99
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: How to display PDF file in my application?

Can anybody help me?

 

Thanks

Please use plain text.
New Developer
d_bb
Posts: 33
Registered: ‎01-19-2010
My Device: RIM Storm
My Carrier: Verizon

Re: How to display PDF file in my application?

You can choose to do either of the thing:

 

1. You can either use any third party utility app to open the pdf file on device.

2. Save the trascoded version of PFD from server as any image format on client and then open it.

 

 

 

-Divya

----------------------------------------------------------------------------------------------------------------------------------------------------------
Don't forget to mark your post as solved if you get the answer and also dont forget to give kudos by clicking star.
----------------------------------------------------------------------------------------------------------------------------------------------------------

 

Please use plain text.
Regular Contributor
bhavesh_patel99
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: How to display PDF file in my application?

can you suggest any third party utility to open pdf file on device?

Please use plain text.
Developer
BB-Dude
Posts: 516
Registered: ‎07-23-2010
My Device: 9900

Re: How to display PDF file in my application?

You can use the CHAPI to open the PDF file assuming there is a registered PDF application.

look at the javax.microedition.content package and also look at the CHAPI demo in your simulator.

Please use plain text.
Regular Contributor
bhavesh_patel99
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: How to display PDF file in my application?

Thanks for the reply.

 

But, I am using 4.2.1 version,  is there any example/sample code for this?

Please use plain text.