Hi,
I am involved in a project where i need to generate a PDF from data from the database. In the process I need to draw some kind of a process map based on data in the database, I have tried to use MigraDoc for all the text and using PdfSharp to generate the process maps. It worked fine until my boss when the text and the map lined up side-by-side like this:
Code:
-------------------------- ---------------------------
| Text describing the | | Map of the process |
| process | | |
-------------------------- ---------------------------
I never found a way to line them up, so I have ditched this 2 steps process and try to extend MigraDoc by adding a new process map DOM object that can be added to a Paragraph object, then the corresponding Renderer and FormatInfo classes.
I have based the implementation on the Shapes.Image object but I still can not line the map object up with the text.
What I got now is all the maps on top of each other in a mess.
Can someone give me some tips on the following issues:
1. What is the correct way to position elements on the page?
2. How does the Paragraph object resize itself based on all the child elements heights and widths?
I have debug into the source of MigraDoc for a week now trying and trying and still have no luck.
Any help would be great.
Paul