I am trying to use Aspose.Pdf to dynamically create a PDF file with my company's logo at the top, email subject with a blue background/white text after the logo, and the senders name and email. I was wondering how to layout these elements, since this is based on a webpage, I tried to use HTML to create this header section, but I am getting an Invalid Character exception with no indication as to what these invalid characters are. Code is below
Pdf pdf = new Pdf();
pdf.IsTruetypeFontMapCached = false;
pdf.PageSetup.PageHeight = PageSize.A2Height;
Section secHeader = pdf.Sections.Add();
// This works
// This does not - what characters are invalid?
|Morning Glory||18th November 2011|
I also will need to insert contents of the HTML based emails into the PDF file, so I assume BindHTML is the best way to do this. Can someone guide me as to what is and what is not allowed when using BindHTML?