feat(Pdf): add FromMemory method to be able to create via stream

This commit is contained in:
tekh 2025-10-23 13:39:59 +02:00
parent f0d101bb23
commit 241e59fc7e

View File

@ -17,6 +17,11 @@ namespace EnvelopeGenerator.PdfEditor
{
return new Pdf<MemoryStream, MemoryStream>(new MemoryStream(documentBytes), new MemoryStream());
}
public static Pdf<MemoryStream, MemoryStream> FromMemory(MemoryStream stream)
{
return new Pdf<MemoryStream, MemoryStream>(stream, new MemoryStream());
}
}
public class Pdf<TInputStream, TOutputStream> : IDisposable, IAsyncDisposable