I'v created a single page document with spire doc, it needs to be duplicated/append 5 times including the existing doc. So a total of 6 pages 1=5=6
- Code: Select all
var tmpdoc = document.Clone();
const int index = 5;
for (var i = 0; i < index; i++)
{
//Merge
foreach (Section sec in tmpdoc.Sections)
document.Sections.Add(sec.Clone());
}
The above code works and creates 6 pages.
I save the doc to a pdf stream then later on load that stream into a PdfDocument(). When I try and print the PdfDocument only the first page is printed single sided, the following pages are printed double sided. Is there an option to stop double sided printing? or should I add an extra page break and/or section to the end of each page?
Thanks in advanced