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

Free Support Forum - aspose.com

PDF odd number of pages printing issue

We have a requirement of printing the selected pages from an excel sheet into pdf. While printing the even number of pages (2,4,6 etc), they are correctly converting into PDF. But we are facing an issue while printing odd number of pages. If we select 3 pages and trying to convert into pdf, the pdf is printing with 4 pages. Similarly if we select 5 pages and trying to convert into pdf, the pdf is printing with 6 pages.

Could you please help us in resolving this issue. Appreciate your quick response

@kajjam_Ravinder,

Thanks for the details.

How do you specify odd/even pages for the sheet? Please provide your template file, output PDF file via Aspose.Cells APIs and sample code (runnable) to show the issue. Also provide PDF file (expected file) via MS Excel, we will check it soon.

PS. Please zip your files prior attaching.