Detect Blank Page and Remove it from PDF using Aspose.PDF for .NET

Hi

Do we currently have any feature regarding Blank pages in Aspose PDF.Kit.

If not is it possible to add features to detect and remove blank pages within a PDF ?

Also i read that OCR capability is targeted by the end of Q1 2011, is it true ?

Thanks

Hi,

I’m sorry to inform you that currently Aspose.Pdf.Kit doesn’t allow to detect blank pages. However, I have logged a new feature request as PDFKITNET-24267 in our issue tracking system. Our team will look into this requirement and you’ll be updated via this forum thread once it is supported.

As far as OCR functionality is available, our team is working on it and the preview version of this feature will be available at the end of Q1’2011 or early Q2’2011. We’ll announce it via our blogs.

If you have any further questions, please do let us know.
Regards,

@NFPDEV

You can now detect blank pages in a PDF document using Aspose.PDF for .NET 20.7. Please consider using the following code snippet:

Detect Blank PDF Page

Document pdfDocument = new Document(dataDir + "Test.pdf");
bool isBlank = pdfDocument.Pages[1].IsBlank(0.01d);

Once a blank page is detected, you can delete it as well using Aspose.PDF for .NET. Please check the linked article in order to Delete a Page from PDF File.