Hi,
If you save the same byte array into a physical file and then create PdfDocument from that file and it works fine, then PdfDocument is working correctly. The only difference between a byte array and a physical file is current position of the stream.
If you still have problems, please try to isolate the problem into a small test application that demonstrates the following:
1. Receiving errors when you load PdfDocument from byte array;
2. Working fine when you save the same byte array into a file and PdfDocument loads fine;
Once you have the test app you can send it to us and we will investigate further. See here for more information on how to send the test app to us:
https://www.essentialobjects.com/forum/test_project.aspxYou will need to isolate the portion of your application that gets/generates the byte array and replace it with some other code that we can run it here. For example, you can save the byte array in a file and then load it with File.ReadAllBytes. This is because how your byte array is generated is unrelated to the problem, it's the contents of the byte array and how you use the byte array that can be related to the problem.
Thanks!