The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
How do I insert an image(emf) from the clipboard into the pdf document. Using Syncfusion.PDF.Windows.Net.4.402.0.51, Visual Studio 2005, VB.Net. I can do this programatically with MS Word easily with outstsnding results. The reason for purchasing your control was to eliminate the use of MS Word. Feel like I have to walk on my lips get these controls to perform what should be simple tasks.
BPBhuvaneswari P Syncfusion Team February 2, 2009 07:23 AM UTC
Hi Martin,
Thank you for your interest in Syncfusion products.
DocIO doesn't have any API to work with clipboard. But we can work around this by using .Net library by converting the Clipboard object to image object and then insert the image into the word document. Please find the below code snippet to do so: [C#]
WordDocument doc = new WordDocument(); doc.EnsureMinimal(); //Metafile if (Clipboard.GetDataObject().GetDataPresent(typeof(Metafile))) image = (Image)Clipboard.GetDataObject().GetData(typeof(Metafile)); //Bitmap else if (Clipboard.GetDataObject().GetDataPresent(typeof(Bitmap))) image = (Image)Clipboard.GetDataObject().GetData(typeof(Bitmap));