Check, if pdf page is empty

Questions, comments and suggestions concerning VintaSoft PDF .NET Plug-in.

Moderator: Alex

Post Reply
DanielLW
Posts: 22
Joined: Tue Sep 01, 2015 2:42 pm

Check, if pdf page is empty

Post by DanielLW »

Hello,

is there a simple way to check reliably, if a pdf page is empty (no image-only page)?

Or do i have to check every content property of the PDFPage (like PdfPage.TextRegion.FormattedTextContent, PdfPage.GetImages(), ...)? If yes, can you give me an example, what properties do i have to check to be sure the page is empty?

Goal is to implement an empty-page-remove in our application.

Thank you and best regards,
Daniel
Alex
Site Admin
Posts: 2305
Joined: Thu Jul 10, 2008 2:21 pm

Re: Check, if pdf page is empty

Post by Alex »

Hello Daniel,
Goal is to implement an empty-page-remove in our application.
I think you need render PDF page and check that rendered image is empty using the IsImageBlankCommand class:
http://www.vintasoft.com/docs/vsimaging ... mmand.html

Best regards, Alexander
Post Reply