Skip to main content
Inspiring
July 21, 2017
Question

PDF document details for batch process

  • July 21, 2017
  • 1 reply
  • 814 views

Hi,

     I want to get the PDF document details like document name, page ranges as a report.  I can get the name and page ranges using batch sequences for batch process but I don't know how to write it as csv or xl report.

     When I searching in forum and google, I read it we can do it using menu item calling.  But if we use Menu item we should code for  folder selection, file opening and closing.  How can we process that?

How can I get the report for pdf files for batch process?

Batch Sequences Code:

if(global.dataLine == "undefined")

   {

        global.dataLine = "";  

    }

    var docName = this.documentFileName;

    var startPgNo = this.getPageLabel(0);

    var lastPgNo = this.getPageLabel(this.numPages-1);

    var docPgRange = startPgNo + "-"+ lastPgNo

    app.alert("docPgRange" +docPgRange)

    global.dataLine = global.dataLine + docName + "," + docPgRange + "\n";

    app.alert("dataLine" +global.dataLine);

- Sudha K

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 21, 2017

The easiest way would be to output it to the JS Console and then copy it

from there to a text file.

Sudha_KAuthor
Inspiring
July 21, 2017

Hi,

     I need to do it in automation..

try67
Community Expert
Community Expert
July 21, 2017

Well, it can't be fully automated. Acrobat will require user interaction to run the Action, as well as export the text file at the end of it.
If you want a fully automated solution it will require using a stand-alone application.