Save Options

Save Options

Forum member · Sep 18, 2013
DynamicPDF Viewer for .NET We are currently using the product and wondering if there was a means to be able to 1) Save the PDF to a physical file. 2) Be able to append items to the context menu so that I can add the save functionality.

Re: Save Options

Support · Sep 19, 2013
Hello, It is not possible to save the PDF document to disk using our DynamicPDF Viewer for .NET product API. It is not possible to add or remove any items from the default context menu but you can completely disable the default context menu add custom context menu. Below is the sample code for it. public partial class Form1 : Form { public Form1() { InitializeComponent(); pdfViewer1.ContextMenuShowing += new ContextMenuShowingEventHandler(pdfViewer1_ContextMenuShowing); PdfDocument document = new PdfDocument(@"C:\MyDocument.pdf"); pdfViewer1.Open(document); } void pdfViewer1_ContextMenuShowing(object sender, ContextMenuShowingEventArgs e) { //Completely disabling the default context menu. //e.Cancel = true; //Adding custom context menu. ContextMenuStrip contextMenuObj = new ContextMenuStrip(); contextMenuObj.Items.Add("Item 1"); contextMenuObj.Items.Add("Item 2"); contextMenuObj.Items.Add("Item 4"); e.AssignedContextMenu = contextMenuObj; contextMenuObj.ItemClicked += new ToolStripItemClickedEventHandler(contextMenuObj_ItemClicked); } void contextMenuObj_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { MessageBox.Show("contenext menu item clicked"); } private void Form1_Load(object sender, EventArgs e) { } } Thanks, ceTe Software support Team.