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

Web and WebWorks Development

Reply
Contributor
Posts: 12
Registered: ‎03-15-2011
My Device: Tourch OS 6.0
My Carrier: Programmer Beginner

What will be the tag for pdf in webworks for the playbook ?

The pdf reader is not available for the playbook. And I wondering what will be the way to use it ? 

 

The "object" tag (available on chrome) will be used by the webworks technologie ? 

for example this code will works on the playbook : 

 

<object width="1024" height="600" data="myDocument.pdf" type="text/html" codetype="application/pdf" ></object> 

 

Thanks ...

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: What will be the tag for pdf in webworks for the playbook ?

I don't believe the PDF viewer can be embedded  in HTML on the Browser for PlayBook.  Are you opening up a local PDF file or a remote one?

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter
Contributor
Posts: 12
Registered: ‎03-15-2011
My Device: Tourch OS 6.0
My Carrier: Programmer Beginner

Re: What will be the tag for pdf in webworks for the playbook ?

The pdf will be downloaded on the device and it shall be read in a webworks application. 

 

Retired
Posts: 3,708
Registered: ‎10-16-2008
My Device: Z10
My Carrier: Rogers

Re: What will be the tag for pdf in webworks for the playbook ?

I don't think you will be able to read it as an embedded part of a WebWorks application.  You could however trigger its download via the browser and I belive the PDF reader will automatically be launched.

 

http://www.blackberry.com/developers/docs/webworks/api/blackberry.invoke.BrowserArguments.html

Tim Neil
Director, Application Platform & Tools Product Management
Follow me on Twitter