I use GS quite a lot for presentations and the only way I've found is to
start a process with the correct command line and then load the image again
later. To save on having to store a million images use the GetTempFileneme
method and delete it after you load it via a stream.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"Sjaakie" <ke**@secret.it> wrote in message
news:44***********************@news.xs4all.nl...
Barry Kelly schreef: Sjaakie <ke**@secret.it> wrote:
Can someone tell me if it is possible to use Ghostscript from C#?
I would like to create thumbnails from several PDFs.
You can always invoke the gs.exe process, I suppose.
-- Barry
Already thought of that, but I'd like to put the PDF-to-JPG result
directly into an Image object in order to customize the output.
If there's no other solution that using gs.exe and reading the created
file from disk, I'll try your solution.
cheers