Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

pdf

wpf

tiff

There are several SO posts and googling which did not really help much with my question. So here I go again.

I need to convert a PDF to a single tiff image (multi-page tiff obviously). I have figured out the tiff creation part. But the issue is with extracting a image/bitmap from pdf. Of course c# .net does not have the functions, but there should be way to do it.

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 . 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.

Edit: Also for a starter, a pdf which contains a simple format would be nice. Not necessary that it should support every type of pdf.

like image 443
Dexters Avatar asked Mar 27 '13 13:03

Dexters


1 Answers

Even with 3rd party it's not going to be easy :) Convert a PDF into a series of images using C# and GhostScript

like image 176
kayz1 Avatar answered Sep 29 '22 00:09

kayz1