PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jul 14, 2024 6:55 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: "Publishing Layout" Need
PostPosted: Tue Aug 31, 2010 6:40 pm 
Offline

Joined: Tue Aug 31, 2010 6:16 pm
Posts: 10
Hello,

I'm new to programming MigraDoc (in C#) but I love it, wirklich!

I have a question about controlling the flow of "panels" on a page, similar to the layout of a newspaper page with variable "panel" sizes which include text content.

A [very] rough depiction is included:
Attachment:
Example Page Flow.png
Example Page Flow.png [ 50.88 KiB | Viewed 4745 times ]


I understand how to use textframes for absolute positioning. Is this what is recommended? Are there any examples anywhere for such positioning?

Any help is appreciated. Thank you!

Henry


Top
 Profile  
Reply with quote  
PostPosted: Thu Sep 02, 2010 7:21 pm 
Offline
PDFsharp Expert
User avatar

Joined: Wed Dec 09, 2009 8:59 am
Posts: 343
MigraDoc can do most things that Word can do - but it's not a DTP tool.

I'm afraid there's no simple way to get what you want.

As long as everything fits on one page, a MigraDoc table can be used to do the trick.

_________________
Öhmesh Volta ("() => true")
PDFsharp Team Holiday Substitute


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 06, 2010 8:59 pm 
Offline

Joined: Tue Aug 31, 2010 6:16 pm
Posts: 10
Unfortunately Öhmesh your answer is factually true. However, I have been able to create the look/feel I needed by overloading the RenderObject method so that a RenderInfo object is returned. Then, I interrogate the LayoutInfo.ContentArea properties from this returned object to obtain the exact location of the previously added object.

From there I dynamically/absolutely position subsequent objects, creating exactly the type of page I need. Though...without full-blown "layout support".

Many thanks to you all for creating/improving this codebase!

Henry


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 58 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:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group