public void createPDF() { PdfDocument document = new PdfDocument(); //Add a page to the document PdfPage page = document.Pages.Add(); //Create PDF graphics for the page PdfGraphics graphics = page.Graphics; //Set the standard font PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); //Draw the text graphics.DrawString("Estatistica Baliza Facil \n\n" + GetStatistics(), font, PdfBrushes.Black, new PointF(0, 0)); MemoryStream stream = new MemoryStream(); document.Save(stream); //Close the document document.Close(true); //Save the stream as a file in the device and invoke it for viewing email.SaveAndView("Estatisticas.pdf", "application/pdf", stream, Storage.Username, Storage.Car.Name + " " + Storage.Car.Style); }