Hi,
When you pass a Stream to the file, make sure that the stream's Position is correct. This is because the code reads the stream starting from its current position. For example, if the PDF content starts from the begining of the stream and when you pass the steam to the library and current position is half way in the middle, then you will get an error since it can't find the PDF file header.
If that's not the problem, please send us the test files and we will check it here. See here for more details on how to send files to us:
https://www.essentialobjects.com/forum/test_project.aspxThanks!