Re: 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 ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
What if the bookmarks are at least same all the time? Say you want the script to create bookmarks which are usually always there. (Then minimal manual intervention to correct or one or two more...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
That's quite easy to do, using the method I've mentioned before.
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Is there a script where I could just add the content into it?
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Do you mean an example? Yes, in the reference file.Here's an example I sent recently to someone on a different forum: This code will create 3 bookmarks that go to pages 1 to 3:...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Will try this in a bit. What about the other processes which I have queried: -Crop the pages-Check the sequence of the pages that it goes from 1,2,3 and so on-ad metadata to the PDF-set view-Making...
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Look at the various actions that are available to you when you create a new batch sequence. You can do most on the items on that list using those actions.
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
Another question regarding bookmarks. How do I set on the script to make the first page of the pdf file a FRONT COVER book mark, and the Last page the BACK COVER as bookmarks?
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
I'm not following you... What do you mean, exactly?
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
I want the script to set by default the 1st page of my PDF mag a bookmark called Front cover. I want the script to set by default the last page of my PDF mag a bookmark called Backcover.
View ArticleRe: Javascript/ Batch Processing - Query (Please assist/advice)
this.bookmarkRoot.createChild({cName:"Front Cover", cExpr:"this.pageNum = 0"})this.bookmarkRoot.createChild({cName:"Back Cover", cExpr:"this.pageNum = this.numPages-1"})
View Article