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

convert PDF to JPEG image
https://forum.pdfsharp.net/viewtopic.php?f=2&t=2568
Page 1 of 1

Author:  dylantsr [ Fri Sep 06, 2013 5:46 am ]
Post subject:  convert PDF to JPEG image

I want to convert each page of the PDF to JPEG image. I'm implementing the code given in the link using asp.net

http://www.pdfsharp.net/wiki/ExportImag ... eSupport=1

However, my issue is:
PdfDictionary xObjects = resources.Elements.GetDictionary("/XObject");

Here the xObjects is getting null.

I have also add reference to PDFSharp.dll.

plz help me....

Author:  () => true [ Fri Sep 06, 2013 7:14 am ]
Post subject:  Re: convert PDF to JPEG image

The sample exports JPEG images contained in the PDF, it does not convert PDF pages to JPEG. It does not work for other (non-JPEG) images nor for "zipped" JPEG images.

A tool like GhostScript can convert PDF pages to images.

Author:  dylantsr [ Fri Sep 06, 2013 1:59 pm ]
Post subject:  Re: convert PDF to JPEG image

Thanks for the reply. I have very hard time using the GhostScript and the ImageMagick. I'm looking for some open source DLL where we can convert the PDF to JPEG images in asp.net. Are you aware of any such with good documentation?

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