Hybrid View

  1. #1
    Sencha User SunboX's Avatar
    Join Date
    Mar 2010
    Posts
    238
    Vote Rating
    28
    SunboX has a spectacular aura about SunboX has a spectacular aura about

      9  

    Default A PDF Viewer Panel - No Browser Plugin required, pure JavaScript

    Ext.ux.panel.PDF

    A PDF Viewer Panel for the ExtJS 4.1 Framework - No Browser Plugin required, pure JavaScript.
    PDF Rendering is done using the great Mozilla PDF.js Library (https://github.com/mozilla/pdf.js).


    Usage

    Code:
    Ext.create('Ext.ux.panel.PDF', {
        title    : 'PDF Panel',
        width    : 489,
        height   : 633,
        pageScale: 0.75,                                           // Initial scaling of the PDF. 1 = 100%
        src      : 'http://cdn.mozilla.net/pdfjs/tracemonkey.pdf', // URL to the PDF - Same Domain or Server with CORS Support
        renderTo : Ext.getBody()
    });

    Demo

    For an demo, please visit http://SunboX.github.com/ext_ux_pdf_panel/demo/


    Github Project

    https://github.com/SunboX/ext_ux_pdf_panel

  2. #2
    Ext JS Premium Member burnnat's Avatar
    Join Date
    Jun 2011
    Posts
    418
    Vote Rating
    61
    burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough burnnat is a jewel in the rough

      0  

    Default

    Great job, very cool! Maybe you'd want to consider adding it to the Sencha Market...

  3. #3
    Sencha User notverycool's Avatar
    Join Date
    Aug 2012
    Posts
    4
    Vote Rating
    0
    notverycool is on a distinguished road

      0  

    Default

    well done!

  4. #4
    Ext JS Premium Member
    Join Date
    Jan 2011
    Posts
    13
    Vote Rating
    0
    onestep is on a distinguished road

      0  

    Default

    Excellent!

  5. #5
    Sencha User talha06's Avatar
    Join Date
    Jul 2009
    Location
    Turkey
    Posts
    317
    Vote Rating
    1
    talha06 is on a distinguished road

      0  

    Default

    amazing extension, working like a charm with server-side generated pdf files too. congratz SunboX!!
    "People will never forget how you made them feel."
    linkedin.com/in/talhakabakus

  6. #6
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,263
    Vote Rating
    486
    scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute scottmartin has a reputation beyond repute

      0  

    Default

    Good job. Thank you for sharing.

    Scott.

  7. #7
    Ext JS Premium Member
    Join Date
    Jan 2011
    Posts
    13
    Vote Rating
    0
    onestep is on a distinguished road

      0  

    Default

    This really is an awesome extension.

    Has anyone tried to make "scroll based paging" instead of next/previous button paging?