1. #1
    Ext User ExtMore's Avatar
    Join Date
    Aug 2009
    Posts
    38
    Vote Rating
    0
    ExtMore is on a distinguished road

      0  

    Default How to control Acrobat browser plugin?

    How to control Acrobat browser plugin?


    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.

  2. #2
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


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

  3. #3
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,962
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Post


    Quote Originally Posted by ExtMore View Post
    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:
    Code:
    mediaCfg: { 
       mediaType   :'PDF'
      ,url         :'ex1.pdf#page=2&zoom=50&pagemode=none&toolbar=0'
      ,id          :'ex1pdf'
     }
    See http://partners.adobe.com/public/dev...Parameters.pdf for more possible values.

    Quote Originally Posted by jgarcia@tdg-i.com View Post
    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 is IE-aware and will enable an Ext-toolbar that demonstrates API access.
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


  4. #4
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default



  5. #5
    Sencha - Community Support Team mschwartz's Avatar
    Join Date
    Nov 2008
    Location
    San Diego, Peoples' Republic of California
    Posts
    2,053
    Vote Rating
    17
    mschwartz will become famous soon enough mschwartz will become famous soon enough

      0  

    Default


    Quote Originally Posted by jgarcia@tdg-i.com View Post
    This is slightly more disturbing:


  6. #6
    Ext User ExtMore's Avatar
    Join Date
    Aug 2009
    Posts
    38
    Vote Rating
    0
    ExtMore is on a distinguished road

      0  

    Default


    Thanks Fellas! I'll pursue hendricd's URL parameter hint.

  7. #7
    Ext User
    Join Date
    Aug 2009
    Posts
    588
    Vote Rating
    1
    Mike Robinson is on a distinguished road

      0  

    Default


    Probably a good plan. This thread seems to be heading downhill fast...


  8. #8
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,361
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    I think it already did: