Converting first page of PDF with Images to Image

Hi,

I'm using community version controls and after the recent update 16.1.0.24 export pdf page which has images in it and I would like to show it as image which is not working for all the pdf's and taking too much time to export it.    .

This is how I'm trying to export:

Dim filename As String = System.IO.Path.GetFileNameWithoutExtension(filePath)
Dim loadedDocument As New PdfLoadedDocument(filePath)
Dim loadedPages As PdfLoadedPageCollection = loadedDocument.Pages
Dim image As Bitmap = loadedDocument.ExportAsImage(0) /*At this point the code is being struck and not throwing any error*/
image.Save(outputPath + "Image_" & filename & ".png")
loadedDocument.Close(True)
loadedDocument.Dispose()

Please test with the attached pdf and let me know what is the issue ?

Attachment: sample_dd432582.rar

1 Reply

AA Akshaya Arivoli Syncfusion Team March 13, 2018 11:25 AM UTC

Hi Ravi, 

Thank you for contacting Syncfusion support. 

We can reproduce the issue “Exporting the PDF document to images using the PdfLoadedDocument takes much time for the provided PDF document” and the fix for this issue will be included in our Volume 1 SP1 release which expected to roll out at the end of March 2018. Also, please create a new incident under your account, if you need the fix prior to the release. Please log on to our support website to create new incident 


Please let us know if you need any other assistance on this. 

Regards, 
Akshaya 


Loader.
Up arrow icon