PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Dec 13, 2017 10:14 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Jun 27, 2017 8:37 pm 
Offline

Joined: Sun Jun 25, 2017 10:00 pm
Posts: 4
Hi,

I need to create a header which consists of an image left aligned and text right aligned at the same level.
Then make a grey line underneath. This header is originally created using MS Word and I need to replicate it in code using Migradoc. In the original MS word document, the text is embedded in a text field. See attached.

Can you quickly show me how to do this in code?

Thanks,
Steven


Attachments:
header.PNG
header.PNG [ 3.26 KiB | Viewed 378 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 29, 2017 10:07 am 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2740
Location: Cologne, Germany
Hi!
Steven wrote:
Can you quickly show me how to do this in code?
No time to write your code.

MigraDoc is much like word. Set a right-aligned tabstop, add the image, add a tabstop, add the text - and your done.

You find a code snippet that sets two tabstops here:
viewtopic.php?p=5361#p5361
Do not set the centered tabstop if you do not need it.
The position for the right-aligned tabstop depends on your page format and your page margins, so change the value as needed.

_________________
Regards
Thomas Hoevel
PDFsharp Team


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

All times are UTC


Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 6 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:  
Powered by phpBB® Forum Software © phpBB Group