Edit this page

Save Programmatically

The SaveDocument method allows you to save the currently loaded document in an new file:

Using SaveDocument method.

radPdfViewer1.SaveDocument(@"D:\MyFile.pdf");

radPdfViewer1.SaveDocument("D:\MyFile.pdf")

You can use the GetDocumentAsStream method to retrieve the document stream:

Get the document stream

var stream = radPdfViewer1.GetDocumentAsStream();

Dim stream = radPdfViewer1.GetDocumentAsStream()

Save from the PdfViewerNavigator

The PdfViewerNavigator has a Save As button that can be used for saving the document as well.

pdf-viewer-save-document001

Was this article helpful? Yes No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy