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

Free Support Forum - aspose.com

Delete Blank Pages from PDF using Aspose.PDF for .NET

Can pdf.kit delete blank pages in a pdf? How would it detect the blank page?


Thank you for considering Aspose.

Although you can delete a specified page from Pdf using Aspose.Pdf.Kit but I am afraid that there is no such functionality to find a blank page.



You can detect as well as delete blank pages from a PDF document now using Aspose.PDF for .NET 20.7. Below code snippet can be used to obtain your requirements:

Detect and Remove Blank Page from PDF

Document pdfDocument = new Document("Test.pdf");
bool isBlank = pdfDocument.Pages[1].IsBlank(0.01d);
// Delete a particular page
// Save updated PDF