refactor(Edit): Dokument-Methode zum Bearbeiten von PDF-Dokumenten hinzufügen

This commit is contained in:
tekh 2025-09-25 10:19:11 +02:00
parent ac29fac88d
commit 2d6347ffa6

View File

@ -54,9 +54,10 @@ namespace EnvelopeGenerator.PdfEditor
}
}
public static Edit<MemoryStream, MemoryStream> OnByte(byte[] documentBytes)
public Edit<TInputStream, TOutputStream> Document(Action<PdfDocument> edit)
{
return new Edit<MemoryStream, MemoryStream>(new MemoryStream(documentBytes), new MemoryStream());
edit(_doc);
return this;
}
#region Finalizer