PdfFileEditor's Concatenate Method Does Not Work

.NET Framework: 1.1.4322.

OS Name: Microsoft Windows XP Professional
OS Version: 5.1.2600 Service Pack 2 Build 2600
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Workstation
OS Build Type: Multiprocessor Free
System Manufacturer: Hewlett-Packard
System Model: hp workstation xw4200
System type: X86-based PC
System Locale: en-us;English (United States)
Input Locale: no;Norwegian (Bokmal)
Time Zone: (GMT+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienn
Total Physical Memory: 2 047 MB
Available Physical Memory: 1 011 MB
Virtual Memory: Max Size: 2 048 MB
Virtual Memory: Available: 2 001 MB
Virtual Memory: In Use: 47 MB
Hotfix(s): 141 Hotfix(s) Installed.
[69]: Q147222
[70]: M886903 - Update
[71]: S867460 - Update
[72]: KB911565
[73]: KB917734_WMP10
[74]: KB867282 - Update
[75]: KB873333 - Update
[76]: KB873339 - Update
[77]: KB883939 - Update
[78]: KB885250 - Update
[79]: KB885835 - Update
[80]: KB885836 - Update
[81]: KB885884 - Update
[82]: KB886185 - Update
[83]: KB887472 - Update
[84]: KB887742 - Update
[85]: KB887797 - Update
[86]: KB888113 - Update
[87]: KB888302 - Update
[88]: KB890046 - Update
[89]: KB890047 - Update
[90]: KB890175 - Update
[91]: KB890859 - Update
[92]: KB890923 - Update
[93]: KB891781 - Update
[94]: KB893066 - Update
[95]: KB893086 - Update
[96]: KB893756 - Update
[97]: KB893803 - Update
[98]: KB893803v2 - Update
[99]: KB894391 - Update
[100]: KB896344 - Update
[101]: KB896358 - Update
[102]: KB896422 - Update
[103]: KB896423 - Update
[104]: KB896424 - Update
[105]: KB896428 - Update
[106]: KB896688 - Update
[107]: KB896727 - Update
[108]: KB898461 - Update
[109]: KB899587 - Update
[110]: KB899588 - Update
[111]: KB899589 - Update
[112]: KB899591 - Update
[113]: KB900485 - Update
[114]: KB900725 - Update
[115]: KB900930 - Update
[116]: KB901017 - Update
[117]: KB901214 - Update
[118]: KB902400 - Update
[119]: KB903235 - Update
[120]: KB904706 - Update
[121]: KB904942 - Update
[122]: KB905414 - Update
[123]: KB905749 - Update
[124]: KB905915 - Update
[125]: KB908519 - Update
[126]: KB908521 - Update
[127]: KB908531 - Update
[128]: KB910437 - Update
[129]: KB911280 - Update
[130]: KB911562 - Update
[131]: KB911567 - Update
[132]: KB911927 - Update
[133]: KB912812 - Update
[134]: KB912919 - Update
[135]: KB913446 - Update
[136]: KB913580 - Update
[137]: KB914389 - Update
[138]: KB916281 - Update
[139]: KB917344 - Update
[140]: KB917953 - Update
[141]: KB918439 - Update

Dear Kjetil,

I have the same .Net framework and Windows version but I can't reproduce this error. This problem is so strange I can only suggest you to do the following:

1) Make sure you are refering to the correct dll.

2) Try it on another machine and see if it will work.

Just to bring this topic back up the list: I am now having the very same problem here. I have a class library project that I call from a Console Application. The class library project uses the Concatenate(Stream[], Stream) method to concatenate files. However the resulting file is always 0 bytes in size.

The version of Aspose.Pdf.Kit is 2.1.0.0

Thanks in advance for your help

Kai

Hi Kai,

Please provide us some resouces including the project or codes which could reproduce the same error. That will really help us to find out reasons

You can attach or upload here in this thread in your reply post for us to test.

Best Regards,

Kevin,

please find attached the sample that I set up. For me this yields a 0 bytes output file.

Kai

Thanks for considering Aspose.

I just tested your project with Aspose.Pdf.Kit v2.1.2.0 and got a correct PDF document.

Please update to the latest version from File Format APIs for .NET Core, Java, Python, C++, Android | products.aspose.com.

Kevin, yes, this does it.

I didn’t think that 2.1.2.0 would fix it as the release notes didn’t state anything regarding concatenation.

Regards

Kai

Hi Kai,

Really sorry for the missing part in the release notes, I will modify it's content right away.