PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Export to JPG

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Feature Request - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
nasskov



Joined: 01 Nov 2006
Posts: 2

PostPosted: Wed Nov 01, 2006 10:56 am    Post subject: Export to JPG Reply with quote

Hello.
I think it would be great if there is functionality to save selected pages to image. This will be very useful for websites which use PDFsharp for making PDFs online and need a preview.(like my current task Wink )
Perhaps there is such functionality already, if it is please let me know how it can be used?
Thank you in advance and thank you for all the great job with PDFsharp, this library is awesome! Smile
Back to top
View user's profile Send private message
Stefan Lange



Joined: 12 Oct 2006
Posts: 47
Location: Cologne, Germany

PostPosted: Thu Nov 02, 2006 9:22 pm    Post subject: Reply with quote

Hello,

this is one of the most-wanted features, but PDFsharp cannot render PDF. See http://wikihost.org/wikis/pdfsharp/wiki/faq4265

Take a look at the PdfSharp.Ghostscript assembly. There is a function PdfToPng. You can make a function PdfToJpeg by changing the parameter
Code:
args.Add("-sDEVICE=png16m")
(see Ghostscript documentation for details).

We at empira Software use this functionality to create page preview images and embed them into the PDF file as PNGs. So our applications can preview a page without having Adobe Reader running.

Regards
Stefan Lange
Back to top
View user's profile Send private message Send e-mail
nasskov



Joined: 01 Nov 2006
Posts: 2

PostPosted: Fri Nov 03, 2006 2:24 am    Post subject: Thank you! Reply with quote

This is exactly what I needed!
Thank you very much Stefan Very Happy
Back to top
View user's profile Send private message
xxysk



Joined: 24 Apr 2007
Posts: 6

PostPosted: Fri Apr 27, 2007 8:45 am    Post subject: about ghostscript Reply with quote

and i want to use the gostscrpt to convert the pdf to image,but when i run the program:"if (File.Exists(outFile))",the program stop?why?the outfile is not exist?
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Feature Request - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com