I'm getting this issue, too (hung inside PdfReader.Open()): NuGet package PDFsharp-MigraDoc-wpf 1.50.3638-beta
... but I'm getting it only in the Exception Handler where I'm using this workaround:
http://forum.pdfsharp.net/viewtopic.php?f=2&t=693&p=5855#p5855 which I'm using because of a "Unexpected end of file" PdfReaderException in the Open() command:
PdfSharp-wpf.dll!PdfSharp.Pdf.IO.Parser.ParseObject(PdfSharp.Pdf.IO.Symbol stop) + 0x5c2 bytes
PdfSharp-wpf.dll!PdfSharp.Pdf.IO.Parser.ReadDictionary(PdfSharp.Pdf.PdfDictionary dict, bool includeReferences) + 0x61 bytes
PdfSharp-wpf.dll!PdfSharp.Pdf.IO.Parser.ReadObject(PdfSharp.Pdf.PdfObject pdfObject, PdfSharp.Pdf.PdfObjectID objectID, bool includeReferences, bool fromObjecStream) + 0x17a bytes
PdfSharp-wpf.dll!PdfSharp.Pdf.IO.Parser.ReadCompressedObject(int objectNumber, int offset) + 0x44 bytes
PdfSharp-wpf.dll!PdfSharp.Pdf.IO.Parser.ReadCompressedObject(PdfSharp.Pdf.PdfObjectID objectID, int index) + 0x13d bytes
PdfSharp-wpf.dll!PdfSharp.Pdf.IO.PdfReader.Open(System.IO.Stream stream, string password, PdfSharp.Pdf.IO.PdfDocumentOpenMode openmode, PdfSharp.Pdf.IO.PdfPasswordProvider passwordProvider) + 0x52f bytes
PdfSharp-wpf.dll!PdfSharp.Pdf.IO.PdfReader.Open(System.IO.Stream stream, PdfSharp.Pdf.IO.PdfDocumentOpenMode openmode) + 0x11 bytes
(Note that the NuGet beta doesn't include .pdb files, so I only have IL offsets.)
Any chance of treating this like an open-source project, where we can at least make our own forks to try to fix the specific problems we're having? I wouldn't necessarily expect you to take PRs, although of course, that might help you, too...
Or, maybe a super-detailed logging mode that could be enabled to help understand how we might modify the existing PDF file to make it successfully open?
Thanks,
->A