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 Sep 15, 2015 7:42 pm

Hello,

We are currently evaluating your product and found one issue.
We get a ' System.OverflowException' when trying to access New York State DMV form mv-104 using your dll(attached) .
The following code caused an exception:
Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("E:\\mv104.pdf");
PdfFormWidget formWidget = doc.Form as PdfFormWidget;


Here is the stack trace:
at spr᩺.ᜁ(Byte[] A_0, Byte[] A_1)
at spr᩺.ᜀ(Int64 A_0, Byte[] A_1, Boolean A_2)
at spr᩸.ᜀ(spr᩺ A_0, Int64 A_1)
at spr᪄.ᜀ(spr᷎ A_0)
at spr᪄.ᜄ(sprᢣ A_0)
at Spire.Pdf.Widget.PdfFieldWidget.ᜀ(sprᾅ A_0, spr᪄ A_1, String A_2, Boolean A_3)
at Spire.Pdf.Widget.PdfFieldWidget.᜛()
at Spire.Pdf.Widget.PdfFieldWidget.get_Name()
at Spire.Pdf.Widget.PdfFormFieldWidgetCollection.DoAdd(PdfField field)
at Spire.Pdf.Widget.PdfFormFieldWidgetCollection..ctor(PdfFormWidget A_0)
at Spire.Pdf.Widget.PdfFormWidget.get_FieldsWidget()
at Spire.Pdf.PdfPageBase.ᜀ(sprᢣ A_0)
at Spire.Pdf.PdfPageBase.ᜒ()
at Spire.Pdf.PdfPageWidget..ctor(PdfDocumentBase A_0, spr᪄ A_1, sprᾅ A_2)
at Spire.Pdf.Widget.PdfPageCollection.ᜄ(sprᾅ A_0)
at spr᪄.ᜀ(sprᢣ A_0)
at spr᪄.ᜄ(sprᢣ A_0)
at sprᦼ.ᜂ()
at sprᦼ.ᜀ()
at sprᦼ.ᜅ()
at spr᪄.ᜄ(sprᢣ A_0)
at Spire.Pdf.Widget.PdfPageCollection.ᜀ(Int32 A_0, Int32& A_1, Boolean A_2)
at Spire.Pdf.Widget.PdfPageCollection.ᜀ(Int32 A_0)
at Spire.Pdf.Widget.PdfPageCollection.get_Item(Int32 index)
at sprᣐ.ᜑ()
at Spire.Pdf.PdfDocument.get_Form()
at WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in e:\ttt\WebApplication1\WebApplication1\WebForm1.aspx.cs:line 27
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Thank you

Yuriy
 
Posts: 4
Joined: Tue Sep 15, 2015 7:26 pm

Wed Sep 16, 2015 2:15 am

Hello,

Thanks for your inquiry.
I have tested your issue with Spire.PDF Pack(Hot Fix) Version:3.5.34, it worked well in our side.
Please download it and have a try.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Wed Sep 16, 2015 4:48 pm

Thank you for your fast reply.
I was able to access the file after applying the HotFix, but I found some other issues and not sure if I should open a new ticket or can post it here.
I wanted to put numbers in all text fields:
Code: Select all
PdfDocument doc = new PdfDocument();
doc.LoadFromFile("E:\\mv104.pdf");
PdfFormWidget formWidget = doc.Form as PdfFormWidget;
           
for (int i = 0; i < formWidget.FieldsWidget.List.Count; i++)
{
    PdfField field = formWidget.FieldsWidget.List[i] as PdfField;
    if (field is PdfTextBoxFieldWidget)
    {
        PdfTextBoxFieldWidget textBoxField = field as PdfTextBoxFieldWidget;
        string strName = textBoxField.Name;
        textBoxField.Text = i.ToString();
    }
}
doc.SaveToFile(@"E:\\output.pdf");


As the result just a few text fields got numbers in it and most of the fields became unfillable(output attached). I also noticed that fields' names are empty. Am I using wrong property?

Yuriy
 
Posts: 4
Joined: Tue Sep 15, 2015 7:26 pm

Thu Sep 17, 2015 1:51 am

Hello,

Thanks for your reply.
I have noticed your issue. And I have posted the issue to our dev team. We will inform you when it is fixed. Sorry for the inconvenience.

Best Regards,
Sweety
E-iceblue support team
User avatar

sweety1
 
Posts: 539
Joined: Wed Mar 11, 2015 1:14 am

Wed Oct 14, 2015 6:27 pm

Hello,

Do we have any progress?

Yuriy
 
Posts: 4
Joined: Tue Sep 15, 2015 7:26 pm

Thu Oct 15, 2015 2:25 am

Hi,

Thanks for your inquiry.
Sorry that now the issue has not been fixed. The issue has some difficulty, our dev team still is working on the issue. We will inform you at once when it is fixed.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Thu Oct 29, 2015 5:48 am

Hi,

Thanks for waiting.
Your issue has been resolved, welcome to download and test Spire.PDF Pack(Hot Fix) Version:3.5.143.
The downloading link is http://www.e-iceblue.com/Download/downl ... t-now.html.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Tue Nov 03, 2015 3:33 am

Hello,

Has your issue been resolved?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2772
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF