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.

Tue Mar 07, 2017 1:33 pm

Hello,

We just upgraded Spire.PDF from version 2 to version 3.8, including the hot fix for version 3.8.193. Unfortunately we are not able to load a PDF using either of these methods:
1) Dim doc As New PdfDocument(encryptedPDf, strOwnerPassword)
2) doc.LoadFromFile(encryptedPDf, strOwnerPassword)

For both we get the error “Source array was not long enough. Check srcIndex and length, and the array's lower bounds." We have confirmed that the file path is valid and the password works when using Adobe directly. The errors occurred once we upgraded to version 3.8 and still occurred after applying the hotfix. Please advise.

Thanks for your assistance.

Lucky1Here
 
Posts: 3
Joined: Mon Feb 18, 2013 3:15 pm

Wed Mar 08, 2017 1:58 am

Dear Lucky1Here,

Thanks for posting.
Please upload the document you were trying and the password to open the document here, or send it to us(support@e-iceblue.com) via email. Then we will look into it and provide you the solution accordingly.
In addition, we found you had sent email to us with the same issue, and my colleague Gary replied you twice, but it seems that you didn't receive the reply ?

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Wed Mar 08, 2017 2:40 pm

Betsy,

I have emailed the encrypted pdf document to support@e-iceblue.com.

I am unable to receive email from you so please post any updates on the forum.

Thank you.

Lucky1Here
 
Posts: 3
Joined: Mon Feb 18, 2013 3:15 pm

Thu Mar 09, 2017 2:13 am

Dear Lucky1Here,

Thanks for your information.
I have noticed the issue and posted it to our Dev team. We will inform you as soon as there is any update.
Sorry for inconvneience caused.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Mon Mar 13, 2017 12:51 pm

Betsy,

Do you have an older version that resolves this issue that we can install until your dev department creates a solution with the latest version? Ultimately I am trying to resolve the following error as well...

Error received from EncryptScannedFiles program: Encrypt Uploaded File Section Error: Invalid/Unknown/Unsupported format Spire.Pdf.Exceptions.PdfDocumentException: Invalid/Unknown/Unsupported format at sprἇ.ᜀ(Int32 A_0) at sprἇ.ᜀ(String A_0) at spr᝽..ctor(Stream A_0, sprᩞ A_1) at sprᩞ..ctor(Stream A_0) at sprᣊ.ᜁ(Stream A_0) at sprᣊ..ctor(Stream A_0, String A_1) at sprᣊ..ctor(String A_0, String A_1) at Spire.Pdf.PdfDocument..

Lucky1Here
 
Posts: 3
Joined: Mon Feb 18, 2013 3:15 pm

Tue Mar 14, 2017 3:38 am

Dear

Thanks for your information.
Here is a hotfix which resolves your issue, please download it and have a try.
http://www.e-iceblue.com/downloads/Temp ... .8.223.zip
If there is any question, please let me know.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Thu Mar 16, 2017 7:49 am

Dear Lucky1Here,

Did you test the hotfix ? Has the issue been resolved ?

Thanks,
Betsy
E-iceblue support team
User avatar

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

Tue Jun 05, 2018 2:49 pm

Hello,
I´m just trying your freeSpire.Office commponets (version 2.15.0) and have the same issue.
Can you share solution with me?

Thanks
T.

ikunakcz
 
Posts: 2
Joined: Sun Dec 17, 2017 9:43 pm

Wed Jun 06, 2018 3:09 am

Dear ikunakcz,

Thanks for your inquiry.
We first suggest using the latest Spire.Office Platinum (DLL Only) Version:3.6.0 which includes all improvements. If your issue still exists, please share us your input document and the code you were using for further investigation.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Wed Jun 06, 2018 1:47 pm

Thank you for your advice. Components works correctly now (with evaluation warning message).
Do you plan update free components and eliminate the issue?

Best regards
Tom

ikunakcz
 
Posts: 2
Joined: Sun Dec 17, 2017 9:43 pm

Thu Jun 07, 2018 1:48 am

Dear Tom,

Sorry that we don't have that plan.
Any question, please do not hesitate to contact us.
Have a nice day.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Fri Feb 01, 2019 10:23 am

Hi Folks,
I am getting same error while initializing -
Document doc = new Document();

ANILSAHU
 
Posts: 3
Joined: Wed Jan 30, 2019 11:37 am

Fri Feb 01, 2019 10:46 am

Dear Anil,

This error should be related to license key of the following code snippet, the parameter key is the value of the Key attribute of the element License of your license xml file (license.elic.xml). Please check whether you applied the whole license key in your application.

Spire.License.LicenseProvider.SetLicenseKey(String key)

Sincerely,
Lisa
E-iceblue support team
User avatar

Lisa.Li
 
Posts: 1261
Joined: Wed Apr 25, 2018 3:20 am

Return to Spire.PDF