Hi,
I am trying to create and save a PDF document according to this:
//Create a new PDF document.
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("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0));
//Save the document.
document.Save("Output.pdf");
//Close the document.
document.Close(true);
However, the document.save() method does not take String as parameter but only System.IO.Stream. What should I do?
The instructions with the code is taken from: https://help.syncfusion.com/file-formats/pdf/getting-started?cs-save-lang=1&cs-lang=csharp
Thank you in advance!