TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Convert PDF file to Image
Gowtham Rajamanickam
Apr 06
2015
Code
1.3
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using Spire.Pdf;
namespace ConvertPdfToImage
{
class
Program
{
static
void
Main(string[] args)
{
PdfDocument doc =
new
PdfDocument();
doc.LoadFromFile(@
"..\..\E-gowtham.pdf"
);
Image img = doc.SaveAsImage(0);
img.Save(@
"..\..\gowtham.jpg"
);
doc.Close();
System.Diagnostics.Process.Start(@
"..\..\gowtham.jpg"
);
}
}
}
C# PDF library
C#
C# Programming