Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Detect Empty Pages

Contributor ,
Feb 12, 2016 Feb 12, 2016

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

TOPICS
Acrobat SDK and JavaScript
4.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 15, 2016 Mar 15, 2016

Look at the saveAs method of the Doc object.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 23, 2016 Mar 23, 2016
LATEST

Hi,

     Ok thank you... I will check...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines