Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu May 27, 2021 8:08 pm

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

tonynovak
 
Posts: 4
Joined: Fri Sep 27, 2019 7:35 pm

Fri May 28, 2021 5:48 am

Hello Tony,

Thanks for your inquiry.
I tested your case and did reproduced your issue, I have logged it in our bug tracking system with the ticket SPIREPDF-4331. If there is any update, we will let you know. Apologize for the inconvenience caused.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Fri May 28, 2021 1:56 pm

Thanks Brian. Yes, please keep me informed on any progress.

tonynovak
 
Posts: 4
Joined: Fri Sep 27, 2019 7:35 pm

Thu Jul 08, 2021 9:22 am

Hello Tony,

Hope you are doing well.
Glad to inform you that we just released Spire.Office Platinum(Hotfix) Version:6.7.0 which fixes the issue SPIREPDF-4331, please download it from the following links to test on your side. Looking forward to your test result.
Nuget link: https://www.nuget.org/packages/Spire.Office/6.7.0
https://www.nuget.org/packages/Spire.Of ... Core/6.7.0
website link: https://www.e-iceblue.com/Download/down ... t-now.html

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Thu Jul 08, 2021 10:02 pm

It looks like that fixed it. I look forward to implementing it next week.

Thanks!

Tony Novak

tonynovak
 
Posts: 4
Joined: Fri Sep 27, 2019 7:35 pm

Mon Jul 12, 2021 10:28 am

Okay, I am looking forward to your test result.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Tue Jul 13, 2021 1:27 pm

The hotfix works. Thanks for your efforts

tonynovak
 
Posts: 4
Joined: Fri Sep 27, 2019 7:35 pm

Wed Jul 14, 2021 1:12 am

Thanks for your feedback.
If you encounter any issues related to our products in the future, please feel free to contact us.

Sincerely,
Brian
E-iceblue support team
User avatar

Brian.Li
 
Posts: 1271
Joined: Mon Oct 19, 2020 3:04 am

Return to Spire.PDF