我们如何在服务器文件夹中打开/保存iframe中的pdf文件 [英] How do we open/save pdf file in iframe from server folder

查看:261
本文介绍了我们如何在服务器文件夹中打开/保存iframe中的pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

I have many link buttons in my page.

When i click the link button, it should open a file from specific server folder and it should show in iframe.

The challenging of the task is, when i open the pdf, then i want edit the pdf file (in iframe), then it should save n the same server folder.

Is it possible to open/save in same folder even if i get the read/write access server and pdf..?





我尝试过:





What I have tried:

<asp:LinkButton ID="lnkView" runat="server" Text="View PDF" OnClick="View"></asp:LinkButton>
            <asp:Literal ID="ltEmbed" runat="server" />







protected void View(object sender, EventArgs e)
  {
          string embed = "<object data=\"{0}\" type=\"application/pdf\" width=\"500px\" height=\"500px\">";
          embed += "If you are unable to view file, you can download from <a href = \"{0}&download=1\">here</a>";
          embed += " or download <a target = \"_blank\" href = \"http://get.adobe.com/reader/\">Adobe PDF Reader</a> to view the file.";
          embed += "</object>";
          ltEmbed.Text = string.Format(embed, ResolveUrl("\\ServerTM101A\TEST\TEST.pdf"));

  }

推荐答案

这有一些问题:

1.使用浏览器插件,PDF的编辑能力非常有限。

2.保存功能只保存到本地机器而不保存到服务器。



潜在的好消息是有对HTML5中的< object> 进行了许多更改,确保在表单中提交对象。我没有使用过这个功能所以我无法告诉你它是否确实上传了编辑过的PDF,
There are a few problems with this:
1. The edit-ability of the PDF is very limited with browser plug-in.
2. The save function would only save to the local machine and not to the server.

The potential good news is that there were many changes to the <object> in HTML5 that does let an object to be submitted within a form. I have not worked with this functionality so i could not tell you if it will indeed upload the edited PDF,


这篇关于我们如何在服务器文件夹中打开/保存iframe中的pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆