PDA

View Full Version : How to control Acrobat browser plugin?



ExtMore
30 Sep 2009, 12:52 AM
Hi,

Is there a way to control the Acrobat browser plugin, either from Javascript or by embedding something in the PDF at creation time? I would like to control things such as which toolbars are shown, and the page zoom level.

My context is this: I have a backend that generates PDF using TCPDF. The frontend uses uxMedia to display it in an Ext.Window.

Any pointers would be greatly appreciated.

16 Oct 2009, 4:07 AM
Does the PDF reader have an API that is connectable via javascript?

hendricd
16 Oct 2009, 4:26 AM
Hi,

Is there a way to control the Acrobat browser plugin, either from Javascript or by embedding something in the PDF at creation time? I would like to control things such as which toolbars are shown, and the page zoom level.

My context is this: I have a backend that generates PDF using TCPDF. The frontend uses uxMedia to display it in an Ext.Window.

Any pointers would be greatly appreciated.

There is some control available on the URL specified. Using ux.Media profiles, that could look like this:


mediaCfg: {
mediaType :'PDF'
,url :'ex1.pdf#page=2&zoom=50&pagemode=none&toolbar=0'
,id :'ex1pdf'
}
See http://partners.adobe.com/public/developer/en/acrobat/PDFOpenParameters.pdf for more possible values. :-?


Does the PDF reader have an API that is connectable via javascript?

That, unfortunately, is only available on IE (since the plugin API is only ActiveX ) :-|

This demo page (http://demos.theactivegroup.com/demodesk.html?demo=media&script=acrobat) is IE-aware and will enable an Ext-toolbar that demonstrates API access.

16 Oct 2009, 4:30 AM
http://studentexperts.cloudprofile.com/photos/medium/4640.PNG

mschwartz
16 Oct 2009, 8:53 AM
http://studentexperts.cloudprofile.com/photos/medium/4640.PNG

This is slightly more disturbing:

http://images.businessweek.com/ss/06/09/ceo_socnet/image/burger-king.jpg

ExtMore
20 Oct 2009, 7:00 AM
Thanks Fellas! I'll pursue hendricd's URL parameter hint. :)

Mike Robinson
20 Oct 2009, 10:59 AM
Probably a good plan. This thread seems to be heading downhill fast...

http://blog.earnmydegree.com/wp-content/uploads/2008/08/mr_bill_the_scream_v2.jpg

20 Oct 2009, 11:16 AM
I think it already did:
http://www.dailyhaha.com/_pics/crash_up_wall.jpg