01-07-20 02:25 AM
01-07-20 05:46 AM
You can use PdfiumViewer https://github.com/pvginkel/PdfiumViewer
You'll have to copy PdfiumViewer.dll and pdfium.dll (in x86 or x64 folder) to BP directory and add reference to PdfiumViewer.dll in BP
Global code
static void Go(string pdfFile, string saveFolder) { using (var pdfDocument = PdfiumViewer.PdfDocument.Load(pdfFile)) { for(int index = 0; index < pdfDocument.PageCount; index++) { var image = pdfDocument.Render(index,300,300, true); image.Save(saveFolder+"Page_"+index.ToString()+".png", ImageFormat.Png); } } }