|
Rank: Member Groups: Member
Joined: 10/15/2012 Posts: 13
|
The code is:
Code: C#
_form = PdfDocument.Merge(_form, p);
This works fine, until the 3rd document (all documents are derived from the same template, and we even tried using the exact PDF unmodified), at which point the exception below is thrown. Also note that, this problem occurs on 1/2 of the production servers (same OS version, patches, IIS, etc), It always works fine on our integration environment, and never works on our development machines (Windows 7, fully patched, VS 2013). The version we are using is 4.0.60.2. When we use the latest version (which we have not purchased) it works (watermarked), but we have other problems with that version that requires us to change the height on the PDF form fields. Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array. at EO.Pdf.Internal.dc.b(Int32 A_0) at EO.Pdf.Internal.dc.a(ai A_0, Int32 A_1) at EO.Pdf.Internal.dc.a(ai A_0) at EO.Pdf.Internal.e3..ctor(e3[] A_0, ai[] A_1) at EO.Pdf.Internal.c4.a.a(a[] A_0) at EO.Pdf.Internal.c4..ctor(hj A_0) at EO.Pdf.Internal.hj.c() at EO.Pdf.PdfDocument.Merge(PdfDocument[] docs) at SOMENAMESPACE.FormsPrinting.EOPdfForm.StartFile(String filename, Int32 pages, SystemError& outError)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
In that case you may need to upgrade to the latest version. If you believe the field height issue is a bug, we will be more than happy to look into it if you can provide test code/file that demonstrates the problem. Your version is more than two years old, and over the year we have received many test files/test cases from our user, so the new version is much more robust and tolerate than the old version.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/15/2012 Posts: 13
|
So we updated the license, and applied the new key, but now the exception is back again. The only difference is that the demo version has a watermark. It seems like something in the demo code is "fixing" this exception; but of course I need it to work without the demo watermark.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
If you see the watermark, then either you are not applying the correct license key, or you are still running the old version. Please check the version of your EO.Pdf.dll. It should have a version number 5.0.x. If the first number is not 5, then you are on a different release.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 10/15/2012 Posts: 13
|
We have the latest dll and the correct key. What I said was we get the same error from the old dll that we get in the new dll. But if we DO NOT give it a key it correctly merges the 3 documents together (however with the demo watermark).
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Ah....I see. In that case can you create a small test app and send the test app to us? We will PM you as to where to send the test app.
Thanks!
|
|