Thank you for contacting us.
As explained in this forum post
the current versions of RadPdfViewer and RadPdfProcessing share the same public API, but differ internally. The exception you have reached is caused by these internal model differences.
When you need to import or export documents with RadPdfProcessing you should use the PdfFormatProvider's constructor that does not require any parameters. You can find more information about this constructor in this RadPdfProcessing formats and conversion documentation article
When you need to view some PDF document in RadPdfViewer you should use the constructor that requires two parameters. More information about this PdfFormatProvider's constructor you may find in this RadPdfViewer showing a file documentation article
As a result in order to generate document with RadPdfProcessing and then display it in RadPdfViewer you should first export the generated document to stream and then import it in the viewer. The following code snippet shows how to generate sample document with RadFixedDocumentEditor and then show the file with RadPdfViewer:
RadFixedDocument document =
(RadFixedDocumentEditor editor =
"Some sample RadPdfProcessing document content."
PdfFormatProvider pdfProcessingProvider =
MemoryStream stream =
PdfFormatProvider pdfViewerProvider =
.pdfViewer.Document = pdfViewerProvider.Import();
I hope this is helpful. If you have any other questions or concerns please do not hesitate to contact us again.
the Telerik team
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.