Intentional Blank Page while print pdf

We are generating a dynamic Pdf using Aspose.Pdf.Generator where we are generating some report for a set of employees. There are two type of reports and for each type of report, we are creating a new Section and adding data to that section.

Tyhe code looks like something like this:

Aspose.Pdf.Generator.Pdf pdf = new Aspose.Pdf.Generator.Pdf();

foreach (KeyValuePair<string, ReportSummary> reports in allReportSummaryData)

{

GenerateDiagnosisReport diagReport = new GenerateDiagnosisReport();

// This method creates a new section in the pdf and add data to the pdf

diagReport.GenerateReport(reports.Value, pdf);

//reportRequest.Pdf = pdf;

GenerateQualityReport qualityReport = new GenerateQualityReport();

// This method creates another new section in the existing pdf and add data to the pdf

qualityReport.GenerateReport(reports.Value, pdf);

}

It is so happening that when the report is ending in an odd number of pages due to data in the pdf, the next report for the next employee starting from the next page. Due to this, when back to back print is being taken, the next employee report is getting started from the even pages.

e.g. for employee 1, lets say there are 3 pages of report. So the report ends in page3 for Employee1. Report for employee2 starts from page4.

Is there a way in Aspose to start printing from report from employee from page5, leaving the page4 blank intentionally. We want to control the rendering part of the pdf, but want to control when it is printed.

Thanks,

Saikat

Hi saikat,


Sorry for the delayed response. I’m afraid Aspose.Pdf doesn’t support the feature requested, leaving blank page intentionally. However you can add blank page while generating the document . Please check following documentation link for the purpose.

Adding empty page in Pdf document

Please feel free to contact us for any further assistance.

Best Regards,