0
Creating PDF-Files
hello,
I'm trying to create an easy pdf-file in Oxyplot. Here's my code:
using Xamarin.Forms;
using OxyPlot;
namespace CreatingPDFDocuments
{
public partial class MainPage : ContentPage
{
public MainPage()
{
InitializeComponent();
var doc = new PortableDocument();
doc.Title = "MyFirstPDFDocument";
doc.Author = "Bert";
doc.AddPage(PageSize.A4);
doc.SetFont("Arial", 96);
doc.DrawText(50, 400, "MyFirstPDFDocument");
doc.Save("Output.pdf");
}
}
}
The problem is that I can't write a string in the parameter of doc.save(
Instead I should give a System.IO.Stream as the parameter. How should I create a stream that I can use as the parameter. Thank you for your help in advance.
Service d'assistance aux clients par UserEcho