Skip to main content
Inspiring
Jul 21, 2017 10:30 AM UTC
Question

PDF document details for batch process

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 is closed to new replies. Start a new post to keep the conversation going.

8 replies

try67
Community Expert
Community Expert
Jul 21, 2017 10:47 AM UTC

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

from there to a text file.

Translate
Sudha_KAuthor
Inspiring
Jul 21, 2017 11:15 AM UTC

Hi,

     I need to do it in automation..

Translate
try67
Community Expert
Community Expert
Jul 21, 2017 11:31 AM UTC

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.

Translate