Repeat Table Header on each PDF page

I am using Aspose.Pdf with Temporary licence.

I am using below code to convert my web page into PDF

string path = @"C:\Projects\HTMLTOPDF";
Aspose.Pdf.License pdflicense = new Aspose.Pdf.License();
pdflicense.Embedded = true;

// ExStart:WebPageToPDF
// The path to the documents directory.
string dataDir = RunExamples.GetDataDir_AsposePdf_DocumentConversion();
// Create a request for the URL.
string url = “”
WebRequest request = WebRequest.Create(url+“Main_Page”);
// If required by the server, set the credentials.
request.Credentials = CredentialCache.DefaultCredentials;
// time out in miliseconds before the request times out
// request.Timeout = 100;

// Get the response.
HttpWebResponse response = (HttpWebResponse)request.GetResponse();

// Get the stream containing content returned by the server.
Stream dataStream = response.GetResponseStream();
// Open the stream using a StreamReader for easy access.
StreamReader reader = new StreamReader(dataStream);
// Read the content.
string responseFromServer = reader.ReadToEnd();

MemoryStream stream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(responseFromServer));
HtmlLoadOptions options = new HtmlLoadOptions(url);

// Load HTML file
Document pdfDocument = new Document(stream, options);
options.PageInfo.IsLandscape = true;

// Save output as PDF format
pdfDocument.Save(dataDir + “WebPageToPDF_out_.pdf”);
// ExEnd:WebPageToPDF

My web page contains a HTML table which may have 100+ rows which span in multiple pdf pages after conversion; I want to repeat html table header at each pdf page.

Hi Anoop,

Thanks for your inquiry. I am afraid Aspose.Pdf does not support your requirement. If your HTML contains repeating header rows then Aspose.Pdf will retain it in HTML to PDF conversion.

We are sorry for the inconvenience.

Best Regards,