PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How to convert PdfPage to bitmap?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=956
Page 1 of 1

Author:  jamesgraylock [ Thu Nov 26, 2009 1:41 am ]
Post subject:  How to convert PdfPage to bitmap?

Guys,

I want to convert PdfPage to bitmap, or convert bitmap to PdfPage.

Is anybody know this, please help me.

Thanks
James

Author:  jamesgraylock [ Thu Nov 26, 2009 3:35 am ]
Post subject:  Re: How to convert PdfPage to bitmap?

Guys,

I have found the GhostScript source code. But it just show how to convert PdfDocument to image, I want to convert PdfPage to image, is anyone can help me?

If I create a new pdfDocument and add the existing pdfPage, it will throw InvalidOperationException("A PDF document must be opened with PdfDocumentOpenMode.Import to import pages from it.")

Thanks
James

Author:  jamesgraylock [ Thu Nov 26, 2009 6:07 am ]
Post subject:  Re: How to convert PdfPage to bitmap?

I found another sample show it
http://www.pdfsharp.net/wiki/ExportImages-sample.ashx

But it just supports JPEG format, other image formats are not yet implemented.

Author:  Thomas Hoevel [ Thu Nov 26, 2009 9:21 am ]
Post subject:  Re: How to convert PdfPage to bitmap?

Export Images exports images. It doesn't convert pages.

That is discussed here:
viewtopic.php?p=2525#p2525
See also here:
viewtopic.php?p=2537#p2537

You only have to ask a question at one place.
Sending PMs won't result in quicker responses (viewtopic.php?f=1&t=73).

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