Re: 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 ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
But which field in the meta-data? Let's say it's "Title". In that case, you use the same if-statement, andthen add:this.info.Title = "Apple"
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Like so? : if (/apple/.test(this.documentFileName)) { this.info.Title = "Apple" } else if (/banana/.test(this.documentFileName)) { this.info.Title = "Banana" } etc.
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
How about if you wanna just add the document title name to the Title? eg if the filename is:Girls_mag_24_Dec2011.pdf then title should be: Girls_mag_24_Dec2011
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
I wrote to you in an earlier post how to get the file name (without theextension). Simply apply that to this.info.Title.
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
That method overwrites the previous file because what it is doing is only doing this:... if (/orange/i.test(this.documentFileName)) { this.info.Title =...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
this.documentFileName.replace(/\.pdf$/i,"") gives you the current file's name minus the extension. Think how you can incorporate that in the code you already have...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
I did it... I just left the if statement completely out of the equation for the the Title/Metadata query... I realised that the program actually does one file at a time meaning it will do the sequence...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Making single PDF files over 1.5 MB smaller Can this be done via scripting? I saw a function under document ->Reduce file size... dunno if this helps the problem...
View Article