Closed Doppelklick closed 1 year ago
Hi, I've tried it again and tried to modify the example. But meanwhile I think that my use case doesn't work.
Content c = Content();
c
..add(TextContent("docname", "Simple docname"))
..add(TextContent("passport", "Passport NE0323 4456673"))
..add(TableContent("table", [
RowContent()
..add(TextContent("key1", "Alex")).
..add(TextContent("key2", "Houser"))
..add(TextContent("key3", "CEO & Founder"))
..add(ListContent("tablelist", [
TextContent("value", "Mercedes-Benz C-Class S205"),
TextContent("value", "Lexus LX 570")
]))
..add(ImageContent('img', testFileContent))
]))
..add(ListContent("multilineList", [
PlainContent("multilinePlain")
..add(TextContent('multilineText', 'line 1')),
PlainContent("multilinePlain")
..add(TextContent('multilineText', 'line 2')),
// **** THIS DOESN'T WORK ***
PlainContent("multilinePlain")..add(ImageContent('img', testFileContent)),
PlainContent("multilinePlain")
..add(TextContent('multilineText', 'line 3')),
]));
Can confirm, that this does not work?
Best, Dominik
Hello.
I added the following line to the standard example
PlainContent("multilinePlain")..add(ImageContent('img', testFileContent)),
Then, I added a stub image to the template, applied the 'img' tag with 'img' name and everything works.
Thank you for your reply. Now it is possible to add the image.
But if I don't add an image to the line - the placeholder is shown :-(
I need to build a docx with a list of text blocks and sometimes there is a optional image.
aaahh. I can try add option or new tag or change current logic and delete image from template if ImageContent not passed. maybe I'll make an update later today
Hi, did you find a solution?
Hi would you have a solution to not display the image location so empty? may be the possibility to change the size of the location? Best regards
Option to delete image added
Hi,
I'm trying to add images dynamically into a list.
But it doesn't work :/