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.

Mon Feb 23, 2015 9:58 pm

I'm trying to pre-populate a pdf that contains extended features. When I try to open the modified pdf file, I get the following error "This document enabled extended features in Adobe Reader. The document has been changed since it was created and use of extended features is no longer available.".

Also when I try to validate if the pdf was signed by getting the value from the pdf field, I get this error "Error while decryption padding block".

ggianoli
 
Posts: 2
Joined: Fri Mar 28, 2014 9:02 pm

Tue Feb 24, 2015 3:56 am

Hello ggianoli,

Thanks for your inquiry.

To help us reproduce and resolve this problem. please provide us the sample document and some code snippets, thank you.

You can upload them to the forum (zipped file) or send it to support@e-iceblue.com.
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Tue Feb 24, 2015 1:34 pm

Thanks for your quick response.

This is the code I'm using.

Dim Doc As Spire.Pdf.PdfDocument
Dim FormWidget As PdfFormWidget

'oByte Array of bytes that contains the pdf form.
Dim ms As New MemoryStream(oByte)
Doc = New Spire.Pdf.PdfDocument(ms)
FormWidget = Doc.Form

'Pre-populate the form
Dim field As PdfField = FormWidget.FieldsWidget.List(0)
If Not IsNothing(field ) Then
Dim textBoxField As PdfTextBoxFieldWidget = CType(field, PdfTextBoxFieldWidget)
textBoxField.Text = sValue
End If

'Save changes
ms.Position = 0
Doc.SaveToStream(ms)
oByte = ms.ToArray()

The above logic works. When I open the file (the version I just saved) I get the error "The document has been changed since it was created and use of extended features is no longer available....." Is there a way I can get rid of this pdf warning message?

When I try to get the value from the signature block like this

Dim field As PdfField = FormWidget.FieldsWidget.List(1)

I get the exception "Error while decrypting padding block"

Can the signatures get corrupted when doing this?

Dim ms As New MemoryStream(oByte)
Doc = New Spire.Pdf.PdfDocument(ms)
FormWidget = Doc.Form

ggianoli
 
Posts: 2
Joined: Fri Mar 28, 2014 9:02 pm

Wed Feb 25, 2015 6:41 am

Hello ggianoli,

Thanks for sharing your code snippets and sample documents.

I have reproduced this problem and posted it to our dev team, we will inform you if there is any update.
Best Regards,
Burning
E-iceblue Support Team
User avatar

burning.liu
 
Posts: 406
Joined: Mon Aug 04, 2014 6:47 am

Fri Sep 30, 2016 1:16 pm

Hello,
Has this issue been resolved? If so, can you post the solution. I'm having the same issue.
thanks

rja
 
Posts: 5
Joined: Wed Jul 27, 2016 8:11 pm

Mon Oct 03, 2016 2:44 am

Dear rja,

Thanks for your inquiry.
The issue ggianoli posted has been fixed in latest Spire.PDF Pack(Hot Fix) Version:3.7.330. Please try to use this version, if the issue still exsits, please provide us the sample document and the code you were using. That would be very helpful to investigate this issue.

Sincerely,
Betsy
E-icblue support team
User avatar

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

Mon Oct 10, 2016 12:53 pm

Hi Betsy,
Thank you for your response. I tested the hotfix, and that solved the problem.

rja
 
Posts: 5
Joined: Wed Jul 27, 2016 8:11 pm

Tue Oct 11, 2016 1:12 am

Dear rja,

Thanks for your feedback.
Please feel free to contact us if there is any question or needs. We are here for help.

Sincerely,
Betsy
E-iceblue support team
User avatar

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

Return to Spire.PDF