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 Oct 06, 2016 7:15 am

HI

While converting PDF to Image ,I got error like below

"System.ArgumentException: Value of '-8.925' is not valid for 'emSize'. 'emSize' should be greater than 0 and less than or equal to System.Single.MaxValue.
Parameter name: emSize
at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
at System.Drawing.Font..ctor(FontFamily family, Single emSize)
at spr6587.0(Single A_0)
at spr6587.3(Single A_0)
at spr6587.0(Single A_0, Boolean A_1)
at spr6587.0(spr5895 A_0, spr387 A_1, Graphics A_2, PointF A_3)
at spr387.1(Graphics A_0, spr5895 A_1, Boolean A_2)
at spr5895.0(String A_0, spr6587 A_1, String A_2, Boolean A_3)
at spr5895.0(String[] A_0, String A_1)
at spr5895.0(spr4639 A_0)
at spr5895.7(Boolean A_0)
at spr7348.0(Graphics A_0, spr1247 A_1, spr5895 A_2)
at spr5895.7(String[] A_0)
at spr5895.0(spr4639 A_0)
at spr5895.7(Boolean A_0)
at Spire.Pdf.PdfDocumentBase.0(Int32 A_0, Int32 A_1, Int32 A_2)
"

Please help me ASAP

[email protected]
 
Posts: 6
Joined: Thu Oct 06, 2016 7:00 am

Thu Oct 06, 2016 8:25 am

Hello,

Thanks for your feedback. Please attach the document exhibiting the issue.

Thanks in advance,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Thu Oct 06, 2016 12:09 pm

Sorry Its very confidential so i can't share

Can you please tell me any other solution ?

[email protected]
 
Posts: 6
Joined: Thu Oct 06, 2016 7:00 am

Fri Oct 07, 2016 1:24 am

Hi,

Thanks for your reply.
We first suggest you try to use the latest Spire.PDF Pack(Hot Fix) Version:3.7.330. If the issue still exsits with the version, the better to provide us([email protected]) the document via email so that we can find the reason caused this issue accurately. We promise to keep the document confidential.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF