Welcome Guest Search | Active Topics | Sign In | Register

Exception when merging two PDF files Options
Jonathan
Posted: Wednesday, December 20, 2017 2:13:11 AM
Rank: Newbie
Groups: Member

Joined: 12/20/2017
Posts: 5
I use EO.Pdf 18.0.15

I have a problem merging som PDF files, I read the PDF files from a byte[] using stream.
And the PDFDocuments is working good.

But when I try to merge on of the Documents I get and Exception

System.InvalidOperationException
HResult=0x80131509
Message=Operation is not valid due to the current state of the object.
Source=EO.Pdf
StackTrace:
at EO.Internal.mu.b()
at EO.Internal.a6s.a.a(aj A_0, a[] A_1)
at EO.Internal.a6s..ctor(gb A_0)
at EO.Internal.gb.d()
at EO.Pdf.PdfDocument.Merge(PdfDocument[] docs)


I get the same Exception trying to merge the PDFDocument with other PDFDocuments as well as with itself.
If I just return the PDFDocuments it displays correctly so it is a working PDF file, no problem there.

Anyone has any suggestions on whats going wrong?
eo_support
Posted: Wednesday, December 20, 2017 9:27:36 AM
Rank: Administration
Groups: Administration

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

This must have something to do with the file you are trying to merge. Can you send the file to us so that we can take a look? See here for more details on sending test file/project to us:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks!
Jonathan
Posted: Wednesday, December 20, 2017 10:25:25 AM
Rank: Newbie
Groups: Member

Joined: 12/20/2017
Posts: 5
Sent the pdf as described in the link.
eo_support
Posted: Thursday, December 21, 2017 7:58:15 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Thanks for the test file. We were able to find out the root of the problem and this issue should be resolved in our next build. We will reply again once the update build is posted.
eo_support
Posted: Tuesday, January 16, 2018 8:06:39 AM
Rank: Administration
Groups: Administration

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

This is just to let you know that we have posted a new build that should fix this problem. You can download the new build from our download page. Please take a look and let us know how it goes.

Thanks!
Jonathan
Posted: Tuesday, January 16, 2018 3:13:16 PM
Rank: Newbie
Groups: Member

Joined: 12/20/2017
Posts: 5
Tested the new version and it solved my problem, now I can merge that file with itself and other files.
Thanks for the help and quick fix and responses
eo_support
Posted: Tuesday, January 16, 2018 3:22:44 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
You are very welcome. Please feel free to let us know if you see any other problems.
Jonathan
Posted: Thursday, January 18, 2018 7:58:02 AM
Rank: Newbie
Groups: Member

Joined: 12/20/2017
Posts: 5
Hi now I got a new problem when I merge the pdf that had the problems with another pdf then that pdf stops displaying some textboxes, I will send an email with the two files I have problems with using the lastest version 18.0.55
eo_support
Posted: Friday, January 19, 2018 3:00:48 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Thanks for the test file. We have found the problem and this will be fixed in our next build. We will reply again when the new build is posted.
eo_support
Posted: Thursday, January 25, 2018 11:37:12 AM
Rank: Administration
Groups: Administration

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

We have posted a new build that addressed this issue. You can download the new build from our download page. Please take a look and let us know how it goes.

Thanks!
Jonathan
Posted: Sunday, January 28, 2018 12:21:45 AM
Rank: Newbie
Groups: Member

Joined: 12/20/2017
Posts: 5
Hi, downloaded the lastest build and now the checkboxes are showing as expected.

Thanks for the quick response
eo_support
Posted: Monday, January 29, 2018 10:50:25 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Glad to hear that and thanks for confirming the fix!
SKR
Posted: Friday, May 18, 2018 10:23:58 AM
Rank: Newbie
Groups: Member

Joined: 5/18/2018
Posts: 9
Hi,

I am able to print two pdf seperately, but when I am merging those two pdf documents, Text is not displaying on the merged pdf. I am using EO.PDF 18.0.98.0 version.

Any ideas?
eo_support
Posted: Friday, May 18, 2018 10:51:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
SKR wrote:
Hi,

I am able to print two pdf seperately, but when I am merging those two pdf documents, Text is not displaying on the merged pdf. I am using EO.PDF 18.0.98.0 version.

Any ideas?


Hi,

Please update to the latest build and if that still does not resolve the issue, please try to isolate the problem into a small test app and send the test app to us. Once we have that we will investigate further. See here for more information about sending test app to us:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks!
SKR
Posted: Friday, May 18, 2018 11:55:43 AM
Rank: Newbie
Groups: Member

Joined: 5/18/2018
Posts: 9
Hi,
With Latest version 18.1.75 the issue went away, but my existing and successfully PDF generating code is giving error now saying 'The object already has an owner. Please use a clone of the object instead.'. Before I upgrade to new version there were no exceptions.

I also observed one more thing is that first we are getting "
Quote:
Object reference not set to an instance of an object.
" at
render.Render(root, block);

Because of this error we are getting first initial error I posted above. So I guess
Quote:
Object reference not set to an instance of an object.
this has to be concentrated.

Is there anything that was changed in new versions so that we need to change in our code base.
eo_support
Posted: Friday, May 18, 2018 1:31:18 PM
Rank: Administration
Groups: Administration

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

Please send a test project to us. Without a test project we would be just shooting the dark and there is little chance for us to hit anything. So sending a test project to us is the most effective way to get such issue resolved.

Thanks!
SKR
Posted: Friday, May 18, 2018 6:04:21 PM
Rank: Newbie
Groups: Member

Joined: 5/18/2018
Posts: 9
Hi,

I have sent test project with details.

I identified is that, when we add Check boxes with AcmCheckBox, Render is giving error "Object reference not set to an instance of an object". If we do not add Checkbox, PDF generation is working good.

Before I upgrade to 18.1.75 version Checkboxes were adding with no problem, but as I mentioned above with old(18.0.98.0) dlls, I faced other issues.

Can you please suggest on new dlls issue?

Thanks.
eo_support
Posted: Monday, May 21, 2018 9:48:12 AM
Rank: Administration
Groups: Administration

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

We have looked into the test file and confirmed this to be a bug on our end. We will fix it and post a new build as soon as possible.

Thanks!
SKR
Posted: Monday, May 21, 2018 2:26:22 PM
Rank: Newbie
Groups: Member

Joined: 5/18/2018
Posts: 9
Hi,

Thank you. Please update when new build is ready.

Thanks,
Syam.
eo_support
Posted: Monday, May 21, 2018 2:53:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,067
Certainly.


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.