26 Replies Latest reply on Mar 23, 2016 9:04 PM by Sudha K

    Detect Empty Pages

    Sudha K Level 1

      Hi,

       

           I need to detect empty pages of pdf document.  if i use the concept of the below code its fail to me bcoz., document contains document name, date & time at bottom of the page.  How can i detect empty pages of pdf document using javascript or java? Can anyone help me...

       

       

       

      for(var i=this.numPages-1;i>=0;i--)

      {

          numWords = this.getPageNumWords(i);

         if(numWords == 0)

          {

                app.alert("Empty Pages");

          }

      }

       

       

      Thanks in advance,

      Sudha K