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
Posts: 75
Registered: ‎05-27-2010
My Device: 9800
My Carrier: Airtel

Re: How to display PDF files in BB application ?

I have used -

 

Invocation invocation =

new Invocation("file:///SDCard/BlackBerry/documents/"+"SamplePDF.pdf");

 

I have pdf file on this location.

 

I am getting ContentHandler Exception. Do I need to write Content Handler for PDF file ? Is it available in sample sample code?

 

Regards,

Bhavesh Patel

Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to display PDF files in BB application ?

Sorry you have missed a question:

 

You said that you could open pdf attachments - what file name does the attachment have?

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

Re: How to display PDF files in BB application ?

Ohh.. yes. The email have file name as "sample.pdf" as an attachment. I am able to open this file from my blackberry email Inbox.

I hope I answered to your question.

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

Re: How to display PDF files in BB application ?

Can anybody help me "how to display PDF files in blackberry application" ?

 

Appreciate your quick reply.

 

Thanks,

Bhavesh

Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to display PDF files in BB application ?

One last test,  if you use the Explorer available in Media (start media, press the menu and choose Explorer), browse to the file and then double click on it, does it open?

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

Re: How to display PDF files in BB application ?

No, it is not opening from Explorer.

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

Re: How to display PDF files in BB application ?

Peter,

Can you please help me?

How to implement, viewing PDF files in blackberry application?

 

Regards,

Bhavesh

Developer
Posts: 19,623
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to display PDF files in BB application ?

Sorry for delay.

 

I have just found that there is an attachment handler that will display pdf's but this will not display other pdf files on device. 

 

So to display PDFs you need to get a PDF Reader for the device.

 

I believe OS 7.0 devices come with this as standard, but for other devices you need to purchase something. 

Developer
Posts: 120
Registered: ‎12-22-2011
My Device: ---
My Carrier: ---

Re: How to display PDF files in BB application ?

Hi , 

i want to open pdf within my application not invoke third-part application ... 

 

do you have any solution for it ?

 

Developer
Posts: 206
Registered: ‎02-22-2011
My Device: BB TORCH & 9800
My Carrier: idea

Re: How to display PDF files in BB application ?

Hi
I too want the same requirement "display PDF files in BB application " . can anyone achieved it. If so please suggest me.

Thanks in Advance
Anil
*****************************************************************************
* Give kudos when you like it
* Mark it as a solution if it fixes your issue