Quantcast
Channel: Adobe Community: Message List - Acrobat SDK
Viewing all articles
Browse latest Browse all 10848

Re: Convert different types of files and merged them into one pdf

$
0
0

right.....I tested it....I added one action: Save....

And last question(thanks for your patience! )

The following codes demonstrayed how I can combine two pdfs in one.

But again...I don't know how many files are there in my folder, I can't specify them. What should I do in this case? How to send parameters to the new array?

 

var doc = app.openDoc({

cPath: "/C/temp/doc1.pdf"

})

aFiles = new Array("doc2.pdf","doc3.pdf");

for ( var i=0; i < aFiles.length; i++) {

doc.insertPages ({

nPage: doc.numPages-1,

cPath: aFiles[i],

nStart: 0

});

}


Viewing all articles
Browse latest Browse all 10848

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>