If I have a tab panel, and wanted one of those tabs to contain a PDF file (while the other(s) contain fields/subfiles, etc). can this be easily accomplished?
(I did see how I can launch a new window(or browser tab) with a PDF, but am looking for a way to open it "IN" my screen).
Thanks
PDFs embeded?
-
- Profound User
- Posts: 83
- Joined: Sun Oct 03, 2010 8:45 am
- First Name: Mike
- Last Name: Geldert
- Company Name: Stonriver
- Country: Angola
- Contact:
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: PDFs embeded?
You could try sticking an HTML container widget inside the tab panel.
This has an "html" property that you can use to put custom HTML onto the screen. You can use an HTML <embed> element to put a PDF document "in" the page.
You could try setting the "html" property to something like this:
This has an "html" property that you can use to put custom HTML onto the screen. You can use an HTML <embed> element to put a PDF document "in" the page.
You could try setting the "html" property to something like this:
Code: Select all
<embed src="/mydir/mydoc.pdf" />
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: PDFs embeded?
Also, you'd probably want to stretch the <embed> element to 100% size of the container. As in:
This will match it to the size of the HTML Container widget, so that you can resize the whole thing in the designer very easily.
Code: Select all
<embed src="/mydir/mydoc.pdf" style="width: 100%; height: 100%;" />
Who is online
Users browsing this forum: No registered users and 0 guests