I use FreeSpire.PDF 6.10.6 to convert pdf to picture, but the resulting picture is blurry and misaligned.
PdfDocument pdfDocument = new PdfDocument();
pdfDocument.LoadFromFile(@"C:\Users\gao_q\Desktop\temp\nrnkdp.pdf");
Image image = pdfDocument.SaveAsImage(0, Spire.Pdf.Graphics.PdfImageType.Bitmap, 1000, 1000);
string fileName = "test" + "_" + DateTime.Now.ToString("yyyyMMddHHmmssfff") + ".jpg";
image.Save(@"c:\" + fileName, System.Drawing.Imaging.ImageFormat.Jpeg);
The pdf file and result jpg file the attached.
I need help, thanks!