tags:

views:

17

answers:

0

I've needed to generate some very complex dynamic pdfs for a client. After messing around with several frameworks I ended up building an XML pseudo-language that translates to the itextsharp xml definition. I then use the xml parser to build the document. I have everything built, it works really well except for check-marks, which I can't seem to make work for anything.

I tried using the check-mark character combined with a table border, but unfortunately most of the checks need to be used within a table and it looks like nesting doesn't work.

Ultimately I gave in and substituted images for the checkmarks, unfortunately I can not get them to wrap properly with the text and it is really killing my formatting.

Does anyone know how to get this working properly?

Here is an example image from the final xml - The image displays properly but always shows up on the line after the text that follows. (I know the font and such aren't necessary but it is added as part of the preprocessing and doesn't seem to hurt anything.

<image textwrap="true" align="left" url="Path/ChkTrue.png" plainheight="10.0" plainwidth="10.0" font="Times" size="9.0" />