Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
140779 | Oct 12,2018 08:06 PM UTC | Nov 9,2018 09:44 AM UTC | Xamarin.Forms | 14 |
![]() |
Tags: PdfViewer |
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"
}
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.