Hi!
I am usingPDFsharp-MigraDoc-GDI.
How can I add a header and a footer on each page?
I am generating my pdf with PdfSharp like:
PdfDocument pdfDocument = PdfGenerator.GeneratePdf(html, PageSize.A4);
Then I use it to attach to an email:
byte[] fileContents = null;
using (MemoryStream stream = new MemoryStream())
{
pdfDocument.Save(stream, false);
fileContents = stream.ToArray();
// Send mail
stream.Dispose();
}
As I understand it, I can only add headers with MigraDoc?
But if I generate, using MigraDoc, I can't save to stream...
Much grateful for guidance..