PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

Migradoc - Create a horizontal line across the page width
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3616
Page 1 of 1

Author:  Steven [ Wed Jun 28, 2017 6:49 pm ]
Post subject:  Migradoc - Create a horizontal line across the page width

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

Author:  Thomas Hoevel [ Thu Jun 29, 2017 8:56 am ]
Post subject:  Re: Migradoc - Create a horizontal line across the page widt

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.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/