Handling the empty pdf

i have a work flow…there are some pdfs in a folder…so i want to check the extracted pdf is empty or not …, if it is empty it should log the error