PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 6:44 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Export to JPG
PostPosted: Wed Nov 01, 2006 10:56 am 
Offline

Joined: Wed Nov 01, 2006 10:29 am
Posts: 2
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! :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Thu Nov 02, 2006 9:22 pm 
Offline
empira Employee
User avatar

Joined: Thu Oct 12, 2006 10:07 pm
Posts: 49
Location: Cologne, Germany
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


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

Joined: Wed Nov 01, 2006 10:29 am
Posts: 2
This is exactly what I needed!
Thank you very much Stefan :D


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

Joined: Tue Apr 24, 2007 4:35 am
Posts: 6
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?


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 36 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