Answers for "itext7 c# memorystream"

C#
0

itext7 c# memorystream

public byte[] GeneratePdf()
    {
        var stream = new MemoryStream();
        var writer = new PdfWriter(stream);
        var pdf = new PdfDocument(writer);
        var document = new Document(pdf);
        document.Add(new Paragraph("Lorem Ipsum ..."));
        document.Close();
        return stream.ToArray();
    }
Posted by: Guest on December-01-2020

C# Answers by Framework

Browse Popular Code Answers by Language