可以iTextSharp的光栅化/导出为JPEG或其他图像格式? [英] Can iTextSharp rasterize/export to JPEG or other image format?

查看:222
本文介绍了可以iTextSharp的光栅化/导出为JPEG或其他图像格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要能够导出PDF文件,我创建为JPEG,让用户可以拥有中端产品,它是不是打开整个PDF更快的截图/缩略图。

I need to be able to export PDF's that I am creating to JPEG, so that users can have a screenshot/thumbnail of the end product, which is faster than opening the whole PDF.

我在一个 ASP.NET 网站运行此运行的中等信任 Rackspace公司莫索云

I am running this on an ASP.NET website running in Medium Trust in the Rackspace Mosso Cloud.

我还没有找到一个库,将在中等信任无论是工作,还是在ABC PDF是本地的伟大工程,在莫索不会负载的情况下。也许莫索有一个自定义的信任级别?

I have yet to find a library that will either work in Medium trust, or in the case of ABC PDF, which works great locally, wont load in Mosso. Maybe Mosso has a custom trust level?

我知道iTextSharp的工作在莫索,但我一直没能弄清楚如何屏幕截图PDF文件的单页或页面导出为JPEG。有没有人在那里谁曾这样做过?

I know that iTextSharp works on Mosso, but I haven't been able to figure how to "screenshot" a single page of a PDF, or export a page to JPEG. Is there anyone out there who has done this before?

推荐答案

没有,iTextSharp的不支持PDF渲染为图像,知道了很多关于PDF内部,但任何事情presentation。

No, iTextSharp does not support rendering PDF to images, knows a lot about PDF internals but anything about presentation.

有也可以呈现PDF格式的多种图像格式许多商业产品。 ABC PDF似乎不错... ...但也许你能找到的东西,在中等信任的工作。

There are as well many commercial products that can render PDF to several image formats. ABC PDF seems good... but maybe you can find something that works in medium trust.

其他解决方案,我能想到像使用Ghostscript的或虚拟的图像打印驱动程序中未提供该环境。

Other solutions I can think like using Ghostscript or printing with Virtual Image Driver are not available in that environment.

这篇关于可以iTextSharp的光栅化/导出为JPEG或其他图像格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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