Requirement Questions on Aspose html to pdf

Hi,

We are using aspose html to pdf conversion.

Below are our few requirements, need assistance and way to achieve them.

  1. If grid in the body has more records and if data spans across next page, the grid header should repeat on each new page.
  2. there is a requirement that first page of headers is in portrait mode and then 2nd page onwards the data is in landscape mode.
  3. Its not supporting html5 round corner

Can i have update on this as soon as possible

Hi there,

Thanks for your inquiry.

*KarthikCh:

  1. Its not supporting html5 round corner*

Please note that Aspose.Words mimics the same behavior as MS Word does. If you open your HTML document in MS Word and convert it to PDF, you will get the same output.

Upon
processing HTML, some features of HTML might be lost. You can find a
list of limitations upon HTML exporting/importing here:
https://docs.aspose.com/words/net/load-in-the-html-html-xhtml-mhtml-format/
https://docs.aspose.com/words/net/save-in-html-xhtml-mhtml-formats/

*KarthikCh:

  1. If grid in the body has more records and if data spans across next page, the grid header should repeat on each new page.*

Please read following documentation link about repeating the table’s header on each page.
https://docs.aspose.com/words/net/working-with-columns-and-rows/

*KarthikCh:

  1. there is a requirement that first page of headers is in portrait mode and then 2nd page onwards the data is in landscape mode.*

In this case, I suggest you please insert the section break continues after the last paragraph of first page and use PageSetup.Orientation property to set the orientation of the page (Landscape or Portrait). Please check the following code example for your kind reference.

var doc = new Document(MyDir + "in.docx");
LayoutCollector lc = new LayoutCollector(doc);
DocumentBuilder builder = new DocumentBuilder(doc);
foreach (Run run in doc.GetChildNodes(NodeType.Run, true))
{
    int page = lc.GetStartPageIndex(run);
    if (page == 2)
    {
        builder.MoveTo(run);
        builder.InsertBreak(BreakType.SectionBreakContinuous);
        break;
    }
}
foreach (Section section in doc.Sections)
{
    section.PageSetup.Orientation = Orientation.Landscape;
}
doc.FirstSection.PageSetup.Orientation = Orientation.Portrait;
doc.Save(MyDir + "Out.docx");

Hope this answers your query. Please let us know if you have any more queries.