PdfViewerControl pdfViewer = new PdfViewerControl();
pdfViewer.Load(@"ErrDisplay.pdf");
Bitmap image = pdfViewer.ExportAsImage(0);
image.Save("Image.png", ImageFormat.Png); |
pdfViewer.RenderingEngine = PdfRenderingEngine.SfPdf
there is no such problem.
there is no problem.
Version : 16.3.0.29 (Service Pack) |
Released on : Oct
30, 2018 Other issues I had seems OK now. However this issue is still there. using Syncfusion.Windows.Forms.PdfViewer;
PdfViewerControl pdfViewer = new PdfViewerControl(); pdfViewer.Load(@"ErrDisplay.pdf"); pdfViewer.Dispose(); try { IO.file.Delete(@"ErrDisplay.pdf") } catch (Exception ex) { Debug.Print(ex.message); } |
using Syncfusion.Windows.Forms.PdfViewer;
public Form1()
{
InitializeComponent();
pdfViewerControl1.Load("../../Data/pdftest.pdf", "alain");
pdfViewerControl1.Dispose(); //This is supposed to clear all resources used by the viewer.
System.IO.File.Delete("../../Data/pdftest.pdf"); //<--- This is raising an exception, the file pdfviewer.pdf is "used by another process"
}