I am using the PDFViewer control and my intent is to show a PDF (prior to writing to disk), the issue I am having is that once the PDF attempts to load into the PDF Viewer it is incredibly slow. The PDF is larger in size (roughly 167+ pages) but that is not uncommon for the average pdf we are generating. My question is, is there anyway to optimize loading information into this control to make PDF's not take an upward of 10-15 minutes to load?
//Create a memory stream we will use to hold our PDF
MemoryStream DocumentStream =
//A 3rd party control that creates the PDF document (this save feature can save to memory stream or to disk)
//Create the Fixed document based on the PDF document in memory
RadFixedDocument document =
PdfFormatProvider ( DocumentStream, FormatProviderSettings.ReadOnDemand ).Import();
//Load the pdf document into our control
pdfViewer.Document = document;
"Error Loading PDF to view: "