Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

how i can convert my pdf file into image. if pdf file will have 5 pages, it should convert into has five images only.pls help asap.
Posted
Comments
What have you tried?

1 solution

Hello

Someone wrote an article about that.
How To Convert PDF to Image Using Ghostscript API[^]

Basically it is something like that:

var pdfConverter = new Converter();
pdfConverter.OutputFormat = "jpeg";
pdfConverter.JPEGQuality = 100;
pdfConverter.ResolutionX = 300;
pdfConverter.ResolutionY = 300;
pdfConverter.FirstPageToConvert = 1;
pdfConverter.LastPageToConvert = 1;
pdfConverter.Convert("source.pdf", "image.jpg");


Valery.
 
Share this answer
 
Comments
Sascha Lefèvre 9-May-15 14:30pm    
+5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900