feat(Pdf): add FromMemory method to be able to create via stream
This commit is contained in:
parent
f0d101bb23
commit
241e59fc7e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user