HTML string to PDF byte array

Can I please get a sample c# code that can convert an html sting to a PDF and return it as byte array? I also need to be able to include a header and a footer.

thanks
Angelo

@angelo34jj

For creating PDF byte array, you can use Output Stream Provider offered by Aspose.HTML. You can obtain MemoryStream of the output PDF and convert it into byte array or physical file as per your requirements. Furthermore, can you please explain about your header/footer requirements? How you wish or expect to add header/footer? Can you please share some sample files?