Hi,
I get HTML in my code and I have the image byte in another file. I want to combine it to export my HTML to PDF with images. This is what I do, and it only works with a single image, on the second iteration I got an error in importSettings.LoadImageFromUri (Method = <Internal Error evaluating expression>). What can I do to add multiple images in the importSettings? I don't see an example in the documentation.
foreach (var img in imageList)
{
EventHandler<LoadImageFromUriEventArgs> loadImageFromUri = (s, e) =>
{
byte[] data = img.ContentBytes;
e.SetImageInfo(data, "jpg");
};
importSettings.LoadImageFromUri += loadImageFromUri;
}
Thanks