![]() MemoryStream stream = new MemoryStream () document. ![]() PointF ( 20, 20 )) //Save the document as stream. DrawString ( "Hello world!", font, brush, new Syncfusion. PdfFont font = new PdfStandardFont ( PdfFontFamily. PdfBrush brush = new PdfSolidBrush ( Syncfusion. Add () //Create PDF graphics for the page. PdfDocument document = new PdfDocument () //Add a page. return File ( stream, contentType, fileName ) string fileName = "Output.pdf" //Creates a FileContentResult object by using the file contents, content type, and file name. string contentType = "application/pdf" //Define the file name. Close ( true ) //Defining the ContentType for pdf file. Save ( stream ) //If the position is not set to '0' then the PDF will be empty. PointF ( 20, 20 )) //Creating the stream object MemoryStream stream = new MemoryStream () //Save the document as stream document. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |