Answers for "itext7 pdfwriter outputstream c#"

C#
0

itext7 pdfwriter outputstream c#

public byte[] CreatePdf()
    {
        var stream = new MemoryStream();
        var writer = new PdfWriter(stream);
        var pdf = new PdfDocument(writer);
        var document = new Document(pdf);

        document.Add(new Paragraph("Hello world!"));
        document.Close();

        return stream.ToArray();
    }
Posted by: Guest on March-10-2020

Code answers related to "itext7 pdfwriter outputstream c#"

C# Answers by Framework

Browse Popular Code Answers by Language