-
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
- 40
-
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
- 40
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
-
17 Jan 2011 6:05 AM #7Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
That's a bug in Chrome or the PDF plugin. You can't really blame ux.Media for that.
-
17 Jan 2011 6:01 PM #8
Actually, currently using FF3.6.13, the demo for ux.Media opens a PDF in an external instance of Reader. On the left side bar, click the ux.Media little black arrow. Select the PDF option. In IE, the default tab shows a little "missing image" icon and the IFRAMED tab results in a download box and shows in a separate window. In FF, I immediately get a PDF popup with either tab.
I know FF now has a separate plugin container now for the more popular plugins. This may be playing a role, because this behavior happens at other sites. However, I need to display the PDF inline in the browser. There may not be a way to do this...
Condor, do you use this extension in actual production use?
-
17 Jan 2011 11:37 PM #9Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
This only works if you have the PDF plugin installed in browsers (did you unselect the plugins when installing Acrobat Reader?).
-
18 Jan 2011 5:41 PM #10
My bad. Turns out the workstation I was using did not actually have Reader's plugins installed, even though it had Adobe Acrobat Standard.
Once installed, it worked.
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