one way is to preprocess the pdf before sending it for extraction
you can use a for loop and read each page of pdf and check if any page is empty then remove it and then send the non empty pages only to the extraction…so that always extraction will not be effected
to check firt usepdf page count to ge count and then loop through usign Enumerable.Range(1,pdfcount).ToArray
use read pdf with specific page and pass currentitem.ToString as input
Say output is stored in str then use if condition with str.Trim.Equals(String.Empty)
on then side save th page number to a list say list1 of type string list use append item to list and ad currentitem.tostring
after the loop use extract pdf and give the range as String.Join(",",list1)
this will extract the pdf with pages only with data