Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF Merge Problem Options
Richard Green
Posted: Monday, May 21, 2012 3:57:50 PM
Rank: Newbie
Groups: Member

Joined: 9/17/2010
Posts: 4
When merging two documents I get the following error (from both My Code and the Demo Code):

Merge PDF Files
Unable to cast object of type 'EO.Pdf.Internal.g6' to type 'EO.Pdf.Internal.i8'.
Exception:

System.InvalidCastException: Unable to cast object of type 'EO.Pdf.Internal.g6' to type 'EO.Pdf.Internal.i8'.
at EOPDFDemo.Program.OnException(Object sender, ThreadExceptionEventArgs e)
at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Timer.TimerNativeWindow.OnThreadException(Exception e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.RunDialog(Form form)
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at EOPDFDemo.MainForm.RunDemo()

I know the document causing the issue was created with SautinSoftware's PDF Creator
(a Vendor uses this and sends the document to me, so this cannot be changed)

The Original Document is 8.5x11 and the Problem document is 15x8 on the first page and 15x17 on the 2nd page.... This might be the problem, but I am unsure.

Does anyone have any idea what might cause this problem and if a setting on my side might be able to fix it.

Also due to security concerns I will be unable to provide the documents for testing.

Thanks for any input you may have.

-Richard



eo_support
Posted: Monday, May 21, 2012 5:03:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi Richard,

There are two different flavor of merges: one takes a list of file names and one takes a list of PdfDocument objects. These two flavor of merge works slighlty differently internally. So you can try the other flavor and see if it works for you.

If you need us to look further, then we will need the PDF file that causes the problem. We can sign NDA with you if your document contains confidential information. Or you can ask your vendor to create a dummy file for you and then send us for debugging purpose. Unless we can have the files to reproduce the problem we cannot investigate this issue because otherwise we would have no way to verify whatever solution/fix indeed solves the root problem for you or not. And if we just guess, not only we won't be sure whether the root issue is fixed, but we would also be risking breaking other things unnecessarily. So we have to have the files to start with.

Thanks!
Richard Green
Posted: Tuesday, May 22, 2012 7:04:53 AM
Rank: Newbie
Groups: Member

Joined: 9/17/2010
Posts: 4
I get the same result no matter the flavor I use... Can you contact me about the NDA. I believe we have a standard one we use for this... I should know something more by lunch today.

Thanks
eo_support
Posted: Thursday, May 24, 2012 10:30:07 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Please download the new build from our download page. The new build should fix this problem for you. One of the field in the file you sent to us is invalid. However we were able to change our code to be more tolerant thus works around the issue.

Thanks!
Richard Green
Posted: Friday, May 25, 2012 6:48:52 AM
Rank: Newbie
Groups: Member

Joined: 9/17/2010
Posts: 4
Works Now... Thanks for you help.
eo_support
Posted: Friday, May 25, 2012 7:29:39 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Great. Thanks for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.