PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Add Multiple Images to MigraDoc in a Loop http://forum.pdfsharp.com/viewtopic.php?f=2&t=3877 |
Page 1 of 1 |
Author: | Kirim [ Sun Nov 25, 2018 11:53 am ] |
Post subject: | Add Multiple Images to MigraDoc in a Loop |
Hi, I'm trying to add images to a MigraDoc paragraph in loop, but only the first image is displayed multiple times. Code: foreach (byte[] image in images) { Paragraph scribble = section.AddParagraph(); scribble.Format.Alignment = ParagraphAlignment.Center; scribble.Format.SpaceAfter = 15; ImageSource.ImageSourceImpl = new ImageSharpImageSource(); var imgSource = ImageSource.FromBinary("Scribble", () => image); var i = scribble.AddImage(imgSource); i.Height = Unit.FromMillimeter(26.4 * 3); i.Width = Unit.FromMillimeter(60.8 * 3); } Can anyone tell me where I'm going Code: wrong.
|
Author: | TH-Soft [ Sun Nov 25, 2018 1:08 pm ] |
Post subject: | Re: Add Multiple Images to MigraDoc in a Loop |
I cannot help with inofficial ports of the library. Check their documentation. Maybe user their source code for debugging. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |