EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: rezzonico on August 22, 2014, 09:11:08 AM



Title: easyui-window and PDF file
Post by: rezzonico on August 22, 2014, 09:11:08 AM
Hi all,

is it possible to open a pdf-file in easyui-window ?
On my PC, "Adobe Acrobat" is installed but the following code do not works.
"Adobe Acrobat" is not started and in easyui-window I see "strange characters":

Code:
 $('#win').window('refresh', '/file.pdf');

<div id="win" class="easyui-window" title="Pdf" style="width:300px;height:200px;">
</div>

Thanks for any help.

Regards.
Miche



Title: Re: easyui-window and PDF file
Post by: wexwell on August 25, 2014, 11:50:11 AM
I have no idea what the official answer is, but I would think it would be very possible with an expanded row. The example shows where they are displaying image files. I have code where I am displaying 3 different tables, one of which includes a link to files that may be stored on the server for the record, and then they are opened as a file attachment. If you can figure out how to do it w/ html / php (or whatever code you use) then you should be able to display it with the expanded row details.

http://www.jeasyui.com/tutorial/datagrid/datagrid21.php

I'm showing most of my code here detailing how I display files as attachments with regards to a question I asked. Perhaps some of it will be helpful.

http://www.jeasyui.com/forum/index.php?topic=3768.0


Title: Re: easyui-window and PDF file
Post by: bakoma on August 27, 2014, 04:54:21 PM
One of the workaround is ti use <iframe src="my.pdf"/> inside your window though.