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

Border around page
https://forum.pdfsharp.net/viewtopic.php?f=2&t=4175
Page 1 of 1

Author:  DevGuyUk [ Thu Sep 17, 2020 8:32 pm ]
Post subject:  Border around page

Hi,

I'm new to PdfSharp and I'm trying to generate invoices to PDF from a C# .NET webforms project. Previously we were using another tool to convert HTML page to PDF but had so many limitations due to rendering issues.

Can someone please point me in the right direction. Our invoices need to have a light thin border around each page (full-height regardless of content), what is the correct way to achieve this? Is it using TextFrame or should I be drawing a rectangle or use a background image?

Invoice example: https://prnt.sc/uj4wpq

Many thanks

Author:  TH-Soft [ Fri Sep 18, 2020 6:45 am ]
Post subject:  Re: Border around page

Hi!
DevGuyUk wrote:
Is it using TextFrame or should I be drawing a rectangle or use a background image?
All three are viable options.
Textframes work if you use MigraDoc.
Rectangles work if you use PDFsharp alone or mix MigraDoc and PDFsharp.
Background images work with all three approaches.

Which approach are you using/considering?

Author:  DevGuyUk [ Fri Sep 18, 2020 8:14 am ]
Post subject:  Re: Border around page

Hi,

Thanks for the quick response. I'm not sure which approach to use at this point, I guess I'll look at Textframes first. I can't find a great number of examples/tutorials so any links would be appreciated.

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