PDFsharp
PDFsharp copied to clipboard
AddImage from Stream
Currently the MigraDoc provides a single overload for the AddImage method that accepts a file name. There is another option that wasn't easy to discover. One can pass a specially formatted string, that looks like base64:{base64-ecoded-image}.
Please add an overload AddImage(Stream stream) to make the API more dev-friendly.
I think that supporting AddImage(Stream stream) is a bad idea.
I think that supporting AddImage(byte[] bytes) could be a good idea.