PDFs embeded?

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
leatherlips
Profound User
Posts: 83
Joined: Sun Oct 03, 2010 8:45 am
First Name: Mike
Last Name: Geldert
Company Name: Stonriver
Country: Angola
Contact:

PDFs embeded?

Post by leatherlips »

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
User avatar
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?

Post by David »

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:

Code: Select all


<embed src="/mydir/mydoc.pdf" />

User avatar
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?

Post by David »

Also, you'd probably want to stretch the <embed> element to 100% size of the container. As in:

Code: Select all


<embed src="/mydir/mydoc.pdf" style="width: 100%; height: 100%;" />

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests