We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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:

3. 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:
http://www.aspose.com/docs/display/wordsnet/Load+in+the+HTML+%28.HTML%2C+.XHTML%2C+.MHTML%29+Format
http://www.aspose.com/docs/display/wordsnet/Save+in+the+HTML+%28.HTML%2C+.XHTML%2C+.MHTML%29+Format

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.
http://www.aspose.com/docs/display/wordsnet/Specifying+Rows+to+Repeat+on+Subsequent+Pages+as+Header+Rows
KarthikCh:

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.

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");


<!–[if gte mso 9]>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:TrackMoves/>
<w:TrackFormatting/>
<w:DoNotShowPropertyChanges/>
<w:PunctuationKerning/>
<w:ValidateAgainstSchemas/>
<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>
<w:IgnoreMixedContent>false</w:IgnoreMixedContent>
<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>
<w:DoNotPromoteQF/>
<w:LidThemeOther>EN-US</w:LidThemeOther>
<w:LidThemeAsian>X-NONE</w:LidThemeAsian>
<w:LidThemeComplexScript>AR-SA</w:LidThemeComplexScript>
<w:Compatibility>
<w:BreakWrappedTables/>
<w:SnapToGridInCell/>
<w:WrapTextWithPunct/>
<w:UseAsianBreakRules/>
<w:DontGrowAutofit/>
<w:SplitPgBreakAndParaMark/>
<w:EnableOpenTypeKerning/>
<w:DontFlipMirrorIndents/>
<w:OverrideTableStyleHps/>
</w:Compatibility>
<m:mathPr>
<m:mathFont m:val=“Cambria Math”/>
<m:brkBin m:val=“before”/>
<m:brkBinSub m:val="–"/>
<m:smallFrac m:val=“off”/>
<m:dispDef/>
<m:lMargin m:val=“0”/>
<m:rMargin m:val=“0”/>
<m:defJc m:val=“centerGroup”/>
<m:wrapIndent m:val=“1440”/>
<m:intLim m:val=“subSup”/>
<m:naryLim m:val=“undOvr”/>
</m:mathPr></w:WordDocument>
<![endif]–><!–[if gte mso 10]>

/* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin-top:0in; mso-para-margin-right:0in; mso-para-margin-bottom:10.0pt; mso-para-margin-left:0in; line-height:115%; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin;}

<![endif]–>Hope this answers your query. Please let us know if you have any more queries.