PDFsharp icon indicating copy to clipboard operation
PDFsharp copied to clipboard

AddImage from Stream

Open gao-artur opened this issue 1 year ago • 1 comments

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.

gao-artur avatar Apr 21 '24 09:04 gao-artur

I think that supporting AddImage(Stream stream) is a bad idea.

I think that supporting AddImage(byte[] bytes) could be a good idea.

ThomasHoevel avatar Apr 23 '24 07:04 ThomasHoevel