Results 1 to 2 of 2

Thread: Embed a PDF in Panel

  1. #1
    Sencha User
    Join Date
    Aug 2010
    Vote Rating

    Default Embed a PDF in Panel

    The following html display a multiply page pdf on mobile safari and it works (scroll and zoom):
    <!DOCTYPE html>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">    
    <object data="corriere.pdf" type="application/pdf" width="100%" height="20000px"></object>
    I've tried a lot of combination within the html tag of a panel (iframe, embed, object), but the results it's always the same, only a portion of the 1 page is displayed.

    The code that i used is a code provided by Evant:

        icon: 'icon.png',
        tabletStartupScreen: 'tablet_startup.png',
        phoneStartupScreen: 'phone_startup.png',
        glossOnIcon: false,
        onReady: function() {
            new Ext.Panel({
                fullscreen: true,
                html: '<iframe src="a.pdf"></iframe>',
                listeners: {
                    resize: function(c, w, h){
                        c.body.child('iframe').setSize(w, h);
    Anyone as solution?


  2. #2
    Sencha User
    Join Date
    Jun 2011
    United States
    Vote Rating

    Default Answer


    Has anyone been able to get this to work?

Similar Threads

  1. Replies: 3
    Last Post: 26 Jan 2012, 3:48 AM
  2. zoom a PDF in a Panel on an Ipad
    By torsten.t in forum Sencha Touch 1.x: Discussion
    Replies: 9
    Last Post: 3 Nov 2010, 6:08 AM
  3. Embed PDFs within a Ext.Panel (.pdb)
    By RandyMcMillan in forum Sencha Touch 1.x: Examples and Showcases
    Replies: 0
    Last Post: 17 Aug 2010, 6:16 PM
  4. Can I embed a Form Panel inside a Window?
    By mrkadakia in forum Ext 3.x: Help & Discussion
    Replies: 20
    Last Post: 3 Aug 2009, 5:52 AM
  5. How do I embed a panel inside a tab?
    By ultrus in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 31 Dec 2007, 10:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts