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 Jun 17, 2014 5:31 am

Hi
When using the SaveToFile(..., FileFormat.PDF) function on some .docx files (attached), the following error occurs:
Length cannot be less than zero. Parameter name: length
Intake.zip

Chris

Forensicare
 
Posts: 22
Joined: Fri Aug 02, 2013 3:29 am

Tue Jun 17, 2014 5:52 am

Hi
Further to my post, I was able to confirm that it was the graphic in the file. Once I replaced the graphic with another graphic, the error disappears. Hope this helps you identify the bug.
Chris

Forensicare
 
Posts: 22
Joined: Fri Aug 02, 2013 3:29 am

Tue Jun 17, 2014 6:11 am

Hi Chris,

Thanks for your feedback. We have tested the document with the newest Spire.Doc hotfix, it works fine, there is no any exception. Please download Spire.Doc Pack(hot fix) Version:5.1.12 and test it again.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

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

Mon Jun 30, 2014 6:29 am

all fixed, thank you.

Forensicare
 
Posts: 22
Joined: Fri Aug 02, 2013 3:29 am

Mon Jun 30, 2014 7:45 am

Hello,

Thanks for your response.
Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.
Sincerely,
Gary
E-iceblue support team
User avatar

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

Return to Spire.Doc