Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Aug 17, 2021 2:13 pm

Value was either too large or too small for a Single

I have a pdf that fails on this line of code with the error message above.
using (Bitmap bitmap = _document.SaveAsImage(_index, PdfImageType.Bitmap) as Bitmap)

I am using v7.6.0 of Spire.pdf.

I can't upload the pdf to this request because it contains user-specific information and is of a confidential nature.
I can email it directly to you if you need it for testing.
I am of the understanding the pdf was created on an iPhone and transferred to a Windows computer.

I would appreciate any assistance with this as we need to be able to get past that error as soon as possible.

Thank you in advance for your assistance.

MJCredland
 
Posts: 5
Joined: Wed Jun 10, 2015 11:03 pm

Wed Aug 18, 2021 10:38 am

Hello,

Thanks for your inquiry.
To help us investigate your issue more quickly and accurately, please provide your input file and your test code. You could send them to us (support@e-iceblue.com) via email. Thanks in advance.

Sincerely,
Brian
E-iceblue support team
User avatar

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

Thu Aug 19, 2021 1:53 am

Hello,

Thanks for providing your input file via email.
I tested your case and did reproduce your issue. I have logged it in our bug tracking system with the ticket SPIREPDF-4572. 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

Thu Sep 02, 2021 10:02 am

Hello,

Thanks for your inquiry.
Glad to inform you that we just released Spire.PDF Pack(Hot Fix) Version:7.9.2 which fixes the issue SPIREPDF-4572, please download it from the following links to test on your side. Looking forward to your test result.
Website link: https://www.e-iceblue.com/Download/down ... t-now.html
Nuget link: https://www.nuget.org/packages/Spire.PDF/7.9.2
https://www.nuget.org/packages/Spire.PDF.NETCore/7.9.2

Sincerely,
Brian
E-iceblue support team
User avatar

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

Thu Sep 16, 2021 10:31 am

Hello,

Greetings from E-iceblue!
Does this hotfix solve your issue? Any feedback will be greatly appreciated.

Sincerely,
Brian
E-iceblue support team
User avatar

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

Return to Spire.Doc