We can display most PDFs just fine using the same code, but a small number of PDFs cause the viewer to enter a tight loop (pegging a CPU and hanging the application). The files that show this behaviour are valid PDF files that open just fine in Adobe Acrobat Reader.
I can reproduce it with a two-line WPF app:
Code: Select all
var bytes = File.ReadAllBytes("bad.pdf");
gdv.DisplayFromByteArray(bytes);