2

I want to generate a Pdfdocument using fileStream in .netcore 2.0.

Before, I was generating the Pdf using .net framework's library but I can't find any 3rd party libraries for .core

The code below is using .net framework Spire.Pdf where I create the PdfDocument from the Stream.

        Stream fileStream =new MemoryStream(buffer);            
        PdfDocument doc = new PdfDocument(fileStream);

Thanks a lot in advance!

1 Answers1

0

Thanks for the answers. In the end I used PdfSharp to implement my solution. The code below is using this library.

        Stream fileStream =new MemoryStream(buffer);

        PdfSharp.Pdf.PdfDocument doc;

        doc = PdfReader.Open(fileStream);