PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index PDFsharp - moved to http://forum.pdfsharp.net/
Please visit the new PDFsharp forum at http://forum.pdfsharp.net/
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Important Notice: We regret to inform you that our free phpBB forum hosting service will be discontinued by the end of June 30, 2024. If you wish to migrate to our paid hosting service, please contact billing@hostonnet.com.
Extending MigraDoc API

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/
View previous topic :: View next topic  
Author Message
stardust



Joined: 05 Sep 2008
Posts: 5

PostPosted: Fri Sep 19, 2008 6:15 pm    Post subject: Extending MigraDoc API Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    PDFsharp - moved to http://forum.pdfsharp.net/ Forum Index -> Support - moved to http://forum.pdfsharp.net/ All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own YouTube Clone

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com