PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

ximage (or pdfpage) to bmp?
http://forum.pdfsharp.com/viewtopic.php?f=2&t=528
Page 1 of 1

Author:  demiz [ Tue Nov 04, 2008 7:43 pm ]
Post subject:  ximage (or pdfpage) to bmp?

First of all, I'd like to say that this is a great library! Thanks!

I've been scanning the forums trying to find a definitive answer to whether or not you can convert a pdfpage or page to an image of some kind. Some posts said that this could not be done, but they were a couple of years old.

I also see that there is a way to render a pdfpage on a windows form control (however in the most recent download, I did not seem to get that project).

If this is true, then I know you can take the contents of a form canvas and render that to an image.... so it seems like the answer would be yes?

Does anybody know one way or the other?

Thanks
demi

Author:  Thomas Hoevel [ Wed Nov 05, 2008 8:51 am ]
Post subject: 

PDFsharp uses XGraphics to create a PDF file.
XGraphics can also be drawn in a Window - e. g. the Preview Window included in the project.
But XImages will not show in the Preview.

You can use the Ghostscript library to create BMPs from PDF. We include sample code showing how to call Ghostscript from .NET.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/