I am getting the error I placed in the subject line
here it is again:
Additional information: An error occured when call to 'gsapi_new_instance' is made: -100
My Code:
the error is on this line:
here it is again:
Additional information: An error occured when call to 'gsapi_new_instance' is made: -100
My Code:
Dim desired_x_dpi As Integer = 96
Dim desired_y_dpi As Integer = 96
Dim inputPdfPath As String = objDownload.FilePath
objLastInstalledVersion = GhostscriptVersionInfo.GetLastInstalledVersion(GhostscriptLicense.GPL, GhostscriptLicense.GPL)
objRasterizer = New GhostscriptRasterizer()
objRasterizer.Open(inputPdfPath, objLastInstalledVersion, False)
Dim img As Image = objRasterizer.GetPage(desired_x_dpi, desired_y_dpi, 1)
Dim ms As New MemoryStream()
img.Save(ms, System.Drawing.Imaging.ImageFormat.Png)
imgPreview.Src = "data:image/png;base64," & Convert.ToBase64String(ms.ToArray)
GetLastInstalledVersion works and returns my 32bit version of gs.the error is on this line:
objRasterizer.Open(inputPdfPath, objLastInstalledVersion, False)