Hello everyone,
I am fairly new to batch processing and javascript, my knowledge in both is really limited and I have some problem with a javascript i'd like to use.
My need is simple: We have tons and tons of Powerpoint documents we need to convert weekly to PDF format, the batch processing in Adobe Acrobat 9.0 work like a charm but there is only one setting I cannot find, we absolutly need to convert them in the format of 2 slide per page vertical.
I have found the script below but due to some security in Acrobat (I think) the batch work but it prompt for save at every file.
pp = this.getPrintParams();
pp.pageHandling = pp.constants.handling.nUp;
pp.nUpPageOrders = pp.constants.nUpPageOrders.Horizontal;
pp.nUpNumPagesH = 0;
pp.nUpNumPagesV = 2;
pp.nUpPageBorder=true;
pp.interactive = pp.constants.interactionLevel.automatic;
pp.printerName = "Adobe PDF";
this.print(pp);
The 2 problems I have with the script:
1. It prompt the windows file saving window for every file, making the batch processing kind of useless.
2. the script create 2 copy of the file one with the actual name of the file and another one that look like a temp file named ADP602.pdf incrementing the number every file.
My question is :
what modification should I made to the script or is there any simplier alternative to convert a massive amount of PPT in PDF format using the 2 slide per page option ?
Thank you very much for your help.
Regards,
Luc Langlois
Created a file named print.js on the user folder
C:\Documents and Settings\[username]\Application Data\Adobe\Acrobat\9.0\JavaScripts
this is the piece of code inside the file:
Print1 = app.trustedFunction(
function (pp ) {
app.beginPriv();
this.print(pp)
app.endPriv();
}
)
Then I made a batch process with a javascript command, the command is :
/* PPT to PDF */
var pp = this.getPrintParams();
pp.pageHandling = pp.constants.handling.nUp;
pp.nUpPageOrders = pp.constants.nUpPageOrders.Horizontal;
pp.nUpNumPagesH = 0;
pp.nUpNumPagesV = 2;
pp.nUpPageBorder=true;
pp.interactive = pp.constants.interactionLevel.silent;
pp.printerName = "Adobe PDF";
sPrint1();
unfortunatly i have the same problem.... acrobat prompt the save as.. context window and create 2 file one with the full name and one with a random name.