Folgende Datei anlegen:
C:\Program Files (x86)\Adobe\Acrobat\Acrobat DC\Acrobat\Javascripts\config.js
mit folgendem Inhalt:
trustedNewDoc = app.trustedFunction( function (nWidth, nHeight)
{
app.beginPriv();
switch( arguments.length ) {
case 2:
{ var newDoc = app.newDoc( nWidth, nHeight ); newDoc.saveAs("Unbenannt.pdf"); newDoc.info.ModDate = new Date(); }
break;
case 1:
{ var newDoc = app.newDoc( nWidth ); newDoc.saveAs("Unbenannt.pdf"); newDoc.info.ModDate = new Date(); }
break;
default:
{ var newDoc = app.newDoc(); newDoc.saveAs("Unbenannt.pdf"); newDoc.info.ModDate = new Date(); }
}
app.endPriv();
})
app.addSubMenu({ cName: "Neu", cParent: "File", nPos: 0 })
app.addMenuItem({ cName: "DIN A5", cParent: "Neu", cExec:
"trustedNewDoc(421,595.4)"});
app.addMenuItem({ cName: "DIN A4", cParent: "Neu", cExec:
"trustedNewDoc(595.4,842)"});
app.addMenuItem({ cName: "DIN A3", cParent: "Neu", cExec:
"trustedNewDoc(842,1191)"});
app.addMenuItem({ cName: "Benutzerdefiniert...", cParent: "Neu", cExec:
"var nWidth = 2.8352707684 * app.response({ cQuestion:'Bitte Breite in mm eingeben: (max. 5000.0)', cTitle: 'Custom Page Size'});"
+"if (nWidth == 0) nWidth = 595.4;"
+"var nHeight = 2.8352707684 * app.response({ cQuestion:'Bitte Höhe in mm eingeben: (max 5000.0)', cTitle: 'Custom Page Size'});"
+"if (nHeight == 0) nHeight = 842;"
+"trustedNewDoc(nWidth, nHeight) "})