Hybrid View
-
16 Jan 2011 8:20 PM #1
How does one display PDFs in a panel?
How does one display PDFs in a panel?
What are my options for displaying a PDF in one of the panels of a border layout?
Code:CPOPExt.UIObjects.Body = function() { return ({ layout: "border", border: false, items: [ { region: "north", id: "bodyTopContainer", layout: "border", height: 30, border: false, items: [{ region: "center", id: "bodyTopTitle", border: false, html: "Manage Forms" }, { region: "east", id: "bodyTopFunctions", bodyCssClass: "bodyButtonPanel", width: 120, border: false }] }, { region: "center", layout: "fit", id: "BodyCenterContainer", items: [CPOPExt.UIObjects.Grid], split: true, border: false }, { region: "south", title: "PDF Viewer", id: "BodyBottomContainer", height: 200, border: true, split: true, collapsible: true, collapsed: true } ] }); };
-
16 Jan 2011 10:45 PM #2Ext JS Premium Member
- Join Date
- Jan 2010
- Location
- Rotterdam, The Netherlands
- Posts
- 383
- Vote Rating
- 8
I'd say in an iframe using the ux Managed Iframe
http://www.sencha.com/forum/showthre...agedIFrame-2.xChristiaan Westerbeek @ Devotis
STOIC ninja, Ext JS expert, Google Apps reseller, Marketing technologist
-
17 Jan 2011 12:45 AM #3Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
-
17 Jan 2011 5:02 AM #4
Are there pros and cons either way?
-
17 Jan 2011 5:32 AM #5Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
ux.Media uses an <object> or <embed> tag that lets you configure the pdf reader (e.g. hide the toolbar).
-
17 Jan 2011 5:38 AM #6Ext JS Premium Member
- Join Date
- Jan 2010
- Location
- Rotterdam, The Netherlands
- Posts
- 383
- Vote Rating
- 8
Use Chrome browser to go to the ux.Media demo at http://demos.theactivegroup.com/demodesk.html . Then click on the ux.Media button and then Acrobat (PDF) Documents. Then choose the second tab. Chrome than zooms to 10% automatically ...
Christiaan Westerbeek @ Devotis
STOIC ninja, Ext JS expert, Google Apps reseller, Marketing technologist
Similar Threads
-
Embed PDFs within a Ext.Panel (.pdb)
By RandyMcMillan in forum Sencha Touch 1.x: Examples and ShowcasesReplies: 0Last Post: 17 Aug 2010, 6:16 PM -
Button menus showing behind embedded pdfs?
By zhegwood in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 10 Dec 2009, 9:17 AM -
Sending PDFs to the client. Best Practice?
By francescoNemesi in forum Ext GWT: DiscussionReplies: 3Last Post: 29 Sep 2009, 8:24 PM -
PDFs and AJAX Requests?
By jpnet in forum Community DiscussionReplies: 3Last Post: 21 Nov 2008, 12:59 PM -
Embedding PDFs in iframes
By Max Carey in forum Ext 2.x: Help & DiscussionReplies: 8Last Post: 13 Jun 2008, 9:00 AM


Reply With Quote