Opening a pdf from a stream produces the following exception:
System.InvalidOperationException: 'Stream cannot be read. Please send us the PDF file so that we can fix this (issues (at) pdfsharp.net).'
I've attached a project to reproduce the issue.
PDFsharp.IssueSubmissionTemplate.zip