我如何在Pdf中下载图像 [英] How I Download Image In Pdf

查看:80
本文介绍了我如何在Pdf中下载图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生



我已经在MS Sql Server 2005数据库中上传了这些图片。我正在使用Visual Studio 2008.现在问题是在单个pdf文件中下载上传的两个图像。

解决方案

要创建PDF,您可以使用iText或其.NET端口,iTextSharp:

http://en.wikipedia.org/wiki/IText [ ^ ],

http://itextpdf.com/ [ ^ ],

http://sourceforge.net/projects/itextsharp/ [ ^ ]。



包括对Java iText网站的引用,因为大多数文档都在那里。如果您了解C#,那么理解基于Java的API文档就不难了。



这里完全无关紧要。您可以在锚点中生成文件引用,以便用户可以将其作为任何其他资源下载。或者此引用可能是ASP.NET文件在其HTTP响应中动态生成PDF内容。您只需要使用 content-type application / pdf。



-SA

Dear Sir

I have upload the images in MS Sql Server 2005 database. I am using Visual Studio 2008. Now issue to download the uploaded two images in single pdf file.

解决方案

To create PDF, you can use iText, or its .NET port, iTextSharp:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^].

In included the reference to Java iText site as well, because most documentation is there. If you understand C#, it would not be difficult to understand Java-bases API documentation.

Downloading it totally irrelevant here. You can generate a file reference in an anchor, so the user can download it as any other resource. Or this reference could be ASP.NET file generating PDF content on the fly in its HTTP response. You just need to use content-type "application/pdf".

—SA


这篇关于我如何在Pdf中下载图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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