Re: Javascript/ Batch Processing - Query (Please assist/advice)
You need to specify the cPath parameter with a unique file name (you can usethe value of the iterator i in the file name)...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Like this??? for(var i=0; i<this.numPages; i+=1){ var extr = this.extractPages({nStart: i, nEnd: i, "c\extr\page" + 1}); extr.closeDoc(true);}
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Almost. The path needs to have the correct syntax used by Acrobat JS forfiles, and must also end with ".pdf", so something like this:cPath: "/c/extr/page" + 1 + ".pdf"(I'm assuming here you're running...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Got the script to work eventually for extraction. The next issue is how to extract single pages for multiple pdf files, without it overriding the extractions. For example, If we have two PDF files in...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
You need to use some kind of unique identifier in the filename, for exampleyou can use the original file name or define some kind of global counterthat you increment after each save.
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Is there a method ,or a coding, that will give me the sourcefile name of the file I am busy extracting. Purpose what I would like to achieve, is for the extracted single page to be saved, with the...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Hi Try The documentFileName works. However it saves filename with text info such as TRA5035...blah blah... Irrevalent info put as a filename for extraction. It has to saves such as...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
I don't really understand. documentFileName returns just the file name(including the extension).If you don't want the full file name there are various options of editingit, like with a regular...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
lol...my bad It is actually working...but it is adding the ".pdf" extension. How can I remove the extension of the DocumentFileName, so that I only adds just the filename and no extension? eg. If the...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
this.documentFileName.replace(/\.pdf$/i,"")
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Is there a way to read multiple pdf files with different filenames, and do the following: If filename has the words "apple" thenadd bookmarks for "apple"eleseif filename has the words "banana"thenadd...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
In the batch process script, you can use something like this: if (/apple/.test(this.documentFileName)) { // then add the "apple" bookmark} else if (/banana/.test(this.documentFileName)) { // then...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
will try in a minute and see if this method works... Why do you use test as your extention? Should it not be .pdf
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Hi This method is not working...tried everything. The bookmarks are not created...remains as is...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
If you want, you can contact me by email: try6767 at gmail dot com.
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Hi I got it to work...eventually found out the issue. The filename HAS TO BE apple.pdf or else it will not work. so if the filename was apple_1234 then it would not work... ------------ Is there a way...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
If you used the code I provided then that's not true... It will work if theword "apple" is anywhere in the file's name.However, it is case-sensitive, so if the file is called Apple_1234.pdf itwill not...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Can this be also done: If filename has the words "apple" thenadd Description for "apple"eleseif filename has the words "banana"thenadd Description for "banana"
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Not sure what you mean by "add description for "apple""? Do you mean thatyou want to edit the meta-data of the file?
View Article