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 » Wed Feb 03, 2016 11:33 am

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: 1445
Joined: Thu Jul 10, 2008 2:21 pm

Re: Check, if pdf page is empty

Post by Alex » Fri Feb 05, 2016 2:35 pm

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

Who is online

Users browsing this forum: No registered users and 1 guest