简体   繁体   English

在没有第三方库的情况下,使用C#.net 3.0或更低版本将pdf转换为tiff?

[英]Converting pdf to tiff using C# .net 3.0 or less without 3rd party libraries?

There are several SO posts and googling which did not really help much with my question. 有几个SO帖子和谷歌搜索对我的问题并没有太大帮助。 So here I go again. 所以我再来一次。

I need to convert a PDF to a single tiff image (multi-page tiff obviously). 我需要将PDF转换为单个tiff图像(显然是多页tiff)。 I have figured out the tiff creation part. 我已经弄清楚了tiff创建部分。 But the issue is with extracting a image/bitmap from pdf. 但是问题在于从pdf提取图像/位图。 Of course c# .net does not have the functions, but there should be way to do it. 当然,c#.net没有该功能,但是应该有办法实现。

On why I dont want to use third party libraries, its because they are not free - some may be, but for security reasons it may not be usable in all environments. 关于我为什么不想使用第三方库的原因,是因为它们不是免费的-某些是免费的,但是出于安全原因,它可能无法在所有环境中使用。 And more than everything just curious how to do it and in some posts this question is being treated as a sin :). 不仅仅是所有事情都好奇如何做到这一点,而且在某些帖子中,这个问题被视为一种罪恶:)。

Any proper methods/ideas or where to start would be helpful. 任何适当的方法/想法或从何处开始都将有所帮助。 I would prefer WPF based solutions than GDI+ based, as I have seen issues with GDI+ tiff creation solution on windows servers . 我更喜欢基于WPF的解决方案而不是基于GDI +的解决方案,因为我已经发现Windows服务器上的GDI + tiff创建解决方案存在问题。 I was of the idea that creating pdf is more difficult and of course I can understand if it was easy it should have been in .net already. 我的想法是,创建pdf更加困难,当然我可以理解,如果已经很容易,应该已经在.net中了。

Edit: Also for a starter, a pdf which contains a simple format would be nice. 编辑:同样对于初学者,包含简单格式的pdf会很好。 Not necessary that it should support every type of pdf. 它不必支持每种类型的pdf。

即使有了第三方,也不容易:) 使用C#和GhostScript将PDF转换为一系列图像

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM