Hi,
I am having an issue converting a PDF file to PNG. Here is the VB code:
'New Spire code to convert pdf file to png image(s)
Dim _pngFileName As String
Dim _pdfFile As New PdfDocument()
_pdfFile.LoadFromFile(PDFfile.Trim())
For i As Integer = 0 To _pdfFile.Pages.Count - 1
Dim img As System.Drawing.Image
img = _pdfFile.SaveAsImage(i)
_pngFileName = Session("VirtualPhysicalPath") & "ExportedReports\" & Session("VendorsPO").ToString() & "B" & ImageNum.ToString() & "X" & i.ToString("D4") & ".PNG"
img.Save(_pngFileName, ImageFormat.Png)
img.Dispose()
Next
I am uploading 2 documents as a zip file. The first, WG00114.pdf, converts with the "green bars" in the report showing too dark to see the data. The second, WG00114rev.pdf, which I created using Adobe Acrobat save to Microsoft PDF, works well. Please take a look and let me know what you find.
Regards,
Tony Novak
Idealease