PdfSharpCore
PdfSharpCore copied to clipboard
Exception error proyect .Net Maui
proyect en net.maui in Net 7.0
{ String filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "xxx.pdf");
Document document = new Document();
Section section = document.AddSection();
Paragraph paragraph = section.AddParagraph();
paragraph.Format.Font.Color = Color.FromCmyk(100, 30, 20, 50);
paragraph.AddFormattedText("Hello, World!", TextFormat.Bold);
PdfDocumentRenderer printer = new PdfDocumentRenderer();
printer.Document = document;
printer.RenderDocument(); **--> line exception**
printer.PdfDocument.Save(filePath);
await Launcher.OpenAsync(new OpenFileRequest
{
File = new ReadOnlyFile(filePath)
});
}
System.ArgumentNullException: 'Value cannot be null. (Parameter 'stream')'
thank you
I have the same error.
Do you guys find any fix for this?
No, I wait for an Update targets .net 8