Convert PDF to JPG in C#
PDF to JPG
PDF to JPG is one of the 100+ conversions supported by the .NET PDF conversion SDK.
Nutrient .NET SDK renders a PDF page and saves it as a JPEG image.
Download samplePrepare the project
Register the SDK license before running conversion operations. For setup details, refer to the getting started with .NET SDK guide.
using GdPicture14;
LicenseManager license = new LicenseManager();license.RegisterKEY("");using GdPicturePDF pdf = new GdPicturePDF();using GdPictureImaging imaging = new GdPictureImaging();
pdf.LoadFromFile(@"input.pdf");pdf.SelectPage(1);int imageId = pdf.RenderPageToGdPictureImageEx(200, true);imaging.SaveAsJPEG(imageId, "output.jpg", 90);imaging.ReleaseGdPictureImage(imageId);pdf.CloseDocument();This example exports the first page at 200 DPI. Repeat the render and save steps for additional pages.