How I can add Page Break using Html

Dears,
I have a list of HTML tables
How can I add page Breaks using HTML between them;
Please take a look at the snapshot.

private static void AppendTabel(StringBuilder QuantityTable, List<StringBuilder> tabels)
{
    foreach (var tabel in tabels)
    {
        QuantityTable.Append("<div style='page-break-after: always;display: inline-block;'>Hera I need page break  </div>");
        QuantityTable.Append(tabel.ToString());
    }
}

@JassarMahmoud You can insert a page break using the following HTML tag:

<br style="page-break-before:always; clear:both" />

thank you @alexey.noskov
there is a way to insert a bookmark using HTML
I tried
<<bookmark [bookmark_expression]>> bookmarked_content <</bookmark>>
but it does not work
and where I can find documentation mapping between aspose node and the HTML

@JassarMahmoud You can insert a bookmark using the following HTML:

<a name="my_bookmark">This is bookmarked text.</a>

The is no such list, but you can easily find out what HTML corresponds some particular node in MS Word document by saving this document as HTML and inspecting it:

Document doc = new Document(@"C:\Temp\in.docx");
HtmlSaveOptions opt = new HtmlSaveOptions();
opt.PrettyFormat = true;
doc.Save(@"C:\Temp\out.html", opt);
1 Like

Thank you very much your support @alexey.noskov :blush:

1 Like