PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Oct 26, 2020 8:47 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: Border around page
PostPosted: Thu Sep 17, 2020 8:32 pm 
Offline

Joined: Thu Sep 17, 2020 8:20 pm
Posts: 2
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Border around page
PostPosted: Fri Sep 18, 2020 6:45 am 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 580
Location: CCAA
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?

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
 Post subject: Re: Border around page
PostPosted: Fri Sep 18, 2020 8:14 am 
Offline

Joined: Thu Sep 17, 2020 8:20 pm
Posts: 2
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.


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: Google [Bot] and 30 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