|
Rank: Newbie Groups: Member
Joined: 4/11/2018 Posts: 3
|
When a PDF text field uses the "Comb Of Characters" property the following error is returned when saving a PDF document after adding the values:
Index and length must refer to a location within the string.\r\nParameter name: length","StackTrace":" at System.String.Substring(Int32 startIndex, Int32 length)\r\n at EO.Internal.tbji.iaxb(String jk, Boolean jl)\r\n at EO.Internal.tbji.iaxa()\r\n at EO.Internal.tbji.iawu()\r\n at EO.Pdf.PdfField.gehy()\r\n at EO.Pdf.PdfField.jegk()\r\n at EO.Internal.tbjn.jegk()\r\n at EO.Pdf.PdfDocument.omeq()\r\n at EO.Pdf.PdfDocument.Save(Stream stream)\r\n at
This is happening in the latest version 22.2.49.0. It doesn't happen in an older version from 2018 that I have been able to test with: 18.1.31.0
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Can you send the PDF file in question to us so that we can debug it here? See here for more info: https://www.essentialobjects.com/forum/test_project.aspxThanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/11/2018 Posts: 3
|
Hi, I've sent a simple PDF with just one form field. The error occurs when calling Save and I'm using a MemoryStream if that makes any difference: MemoryStream mStream = new MemoryStream(); doc.Save(mStream);
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Thanks for the test file. We were able to find out the root cause. This will be fixed in our next build and we will reply here again as soon as the new build is available.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This is just to let you know that we have posted a new build that should resolve this issue. You can download the new build from our download page. Please take a look and let us know how it goes.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 4/11/2018 Posts: 3
|
Hi, I've updated and works now, thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Great. Thanks for confirming the fix!
|
|