PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 12:48 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Extending MigraDoc API
PostPosted: Fri Sep 19, 2008 6:15 pm 
Offline

Joined: Fri Sep 05, 2008 4:05 pm
Posts: 5
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 374 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group