PDFsharp & MigraDoc Forum

PDFsharp - A .NET library for processing PDF & MigraDoc - Creating documents on the fly
It is currently Tue Nov 04, 2025 10:33 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules

Also see our new Tailored Support & Services site.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Sep 06, 2013 5:46 am 
Offline

Joined: Fri Sep 06, 2013 5:39 am
Posts: 2
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....


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 06, 2013 7:14 am 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 355
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.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Fri Sep 06, 2013 1:59 pm 
Offline

Joined: Fri Sep 06, 2013 5:39 am
Posts: 2
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?


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 194 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group