BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
Views.Busy.SetBusy(false); PdfDocumentdocument=newPdfDocument(); document.PageSettings.Orientation=PdfPageOrientation.Portrait; document.PageSettings.Size=PdfPageSize.A4; PdfPagepage=document.Pages.Add(); PdfGraphicsgraphics=page.Graphics; PdfBitmapimage=newPdfBitmap(newMemoryStream(sub.TheImage)); //validimagedata graphics.DrawImage(image,0,0,page.Graphics.ClientSize.Width,page.Graphics.ClientSize.Height); //<==suddenlyraisesexception MemoryStreamstream=newMemoryStream(); awaitdocument.SaveAsync(stream); //weneedaclearUIsinceweinvoketheSaveFilePickerdialog Views.Busy.SetBusy(false); //savethestreamintoWorddocumentfile awaitSavePDF(stream,"Scan.pdf");
graphics.DrawImage(image,0,0,page.Graphics.ClientSize.Width,page.Graphics.ClientSize.Height); //<==suddenlyraisesexception