PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 7:26 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: Wed Jun 28, 2017 6:49 pm 
Offline

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

Does anyone know how to create a horizontal line that spans across the page width? I tried to create new table to display the line with column width across the entire page but it gets restricted by the margin in the page setup.

Is there a way to draw a page-wide horizontal line without restricted by the margin in Migradoc?

Thanks,
Steven


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 29, 2017 8:56 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
Hi!
Steven wrote:
I tried to create new table to display the line with column width across the entire page but it gets restricted by the margin in the page setup.
It is not restricted, you do not use it properly.

Steven wrote:
Is there a way to draw a page-wide horizontal line without restricted by the margin in MigraDoc?
A table will do. Set the left indent to match the with of the page margin (for a margin that is 2.5 cm you will need a left indent of -2.5 cm) and set the width of the table to match the width of the page.

A paragraph with a top or bottom border should also work (using negative indents, too). Or an image.

_________________
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: No registered users and 128 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