we are generating a pdf file on the fly, and displaying it using asp.net
Response.ContentType = "application/pdf";
Response.BinaryWrite(pdfMemoryStream);
but if pdf is not installed, then we get an ugly error message. How can we change what we're doing so that when the user does not have pdf installed, we instead show a friendly message?