Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I render PDF file pages as images?

Tags:

pdf

c#-2.0

I need to be able to convert a PDF file to images (one image per page) to be displayed on a web page like Google Docs does. This is for an internal intranet application where the requirements call for a PDF file on the web but with the ability to track scrolling, and this is the only way I can come up with to do it.

The problem is I can't find a good way to convert PDF files on the fly.

like image 384
Max Schmeling Avatar asked Dec 13 '22 23:12

Max Schmeling


1 Answers

Try GhostScript. It's open source and can by run as a command line process or directly through the DLL. I've used this in a production app for the last 2 years with minimal problems.

To see how to export images using the dll directly, see this codeproject article.

like image 194
kwcto Avatar answered Jan 08 '23 14:01

kwcto