-
15 Aug 2012 11:25 AM #1
A PDF Viewer Panel - No Browser Plugin required, pure JavaScript
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
-
15 Aug 2012 12:05 PM #2
-
15 Aug 2012 6:16 PM #3
-
16 Aug 2012 1:26 AM #4
-
16 Aug 2012 5:43 AM #5
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
-
16 Aug 2012 10:32 AM #6
Good job. Thank you for sharing.
Scott.
-
16 Aug 2012 10:47 AM #7
good work. shame it doesn't work in IE. That's not your fault though - neither does pdf.js itself.
------------------------------------------
Conor Armstrong
tw: @evathedog
web: rockstown.com
Ext.ux.form.AutoCombo
Ext.ux.SimpleIFrame
Ext.ux.form.ToolFieldSet
Knowledge is realising that the street is one-way, wisdom is looking both directions anyway.
-
16 Aug 2012 1:52 PM #8
Thx all!
Maybe you can get it working in older IE by using flashcanvas or ExplorerCanvas. But I didn´t have tested them.
Another thing I thought about is using an iframe as fallback if no canvas is supported. Let´s see if I get some time to check this. Or if someone has the time, fork it and make it more awesome! ;o)
greetings Sunny
-
20 Aug 2012 6:06 AM #9
Looks nice Sunny.
Can this also be ported to Sencha Touch 2? Or is there another way to get it working on Sencha Touch 2
Kind regards
-
20 Aug 2012 11:37 AM #10


Reply With Quote

