Page 1 of 1

Check, if pdf page is empty

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

Re: Check, if pdf page is empty

Posted: Fri Feb 05, 2016 2:35 pm
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