PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Best way to have image and text
https://forum.pdfsharp.net/viewtopic.php?f=2&t=1441
Page 1 of 1

Author:  matthieugd [ Thu Nov 25, 2010 5:52 pm ]
Post subject:  Best way to have image and text

I'm using MigraDoc and I want to reproduce this:

Attachment:
align.PNG
align.PNG [ 4.24 KiB | Viewed 4089 times ]


I tried with a table but since the column are not automatically size with the content the text is wrapped. Any suggestions ?

Matthieu

Author:  jeffhare [ Wed Dec 01, 2010 10:59 pm ]
Post subject:  Re: Best way to have image and text

Can you be more clear about what you're showing and what you're trying to do?

Is there some significance to the blue Lines crossing the name 'Nathalie', or are you just looking to have the little images followed by the names?

Author:  matthieugd [ Thu Dec 02, 2010 1:11 pm ]
Post subject:  Re: Best way to have image and text

jeffhare wrote:
Can you be more clear about what you're showing and what you're trying to do?

Is there some significance to the blue Lines crossing the name 'Nathalie', or are you just looking to have the little images followed by the names?


Yeah sorry, no sigificance to the blue lines (they are the page's margins). It's all about correctly put images and text on the same lines.

Author:  jeffhare [ Thu Dec 02, 2010 2:56 pm ]
Post subject:  Re: Best way to have image and text

Ok, so if I understand correctly, When the text portion would run off page, you want to wrap both the image and the text together.

That means effectively you want to emulate some property like "Keep with Next" on the image.

I haven't tried this to do exactly this before, but I do something similar using a hyperlink. Perhaps you could add a AddHyperlink to your paragraph, add the image and formatted text to this hyperlink, but supply no link destination if that were allowed. If this still wraps improperly, you might be in a position to tweak the Hyperlink rendering to skip the word wrapping step within hyperlinks?

Attachment:
File comment: Deeply Nested Tables with embedded icon link
NestedTable.JPG
NestedTable.JPG [ 30.37 KiB | Viewed 4067 times ]

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/