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

Free Support Forum - aspose.com

Recto verso & new page problem


I’m inserting a massive content of html chapters in a document and it will be printed recto verso.
Each new chapter should begin on a new page, this works, but it should also start on a new paper. So not the backside of a previous.

Is this possible to do this by code ?



<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. In this case each new chapter should start on odd page. So, I think, you should just insert SectionBreakOddPage. For instance see the following code:

DocumentBuilder builder = new DocumentBuilder();

// Insert some text. This text will be on the first page/first paper.

builder.Writeln("This is the first page");

// No insert SectionBreakOddPage.

// In this case text inserted after thsi break will be on the third page.

// i.e. on the second leaf of paper, in case of double-side printing.


// Insert some text.

builder.Writeln("This text is on the second leaf of paper, in case of double-side printing");


Hope this helps.

Best regards.

Thank you,

Problem solved!