Hi,
How do I insert a blank page using JavaScript?
I have initialised the variable as follows :
var myPdf = Watch.GetPDFEditObject();
Hi,
How do I insert a blank page using JavaScript?
I have initialised the variable as follows :
var myPdf = Watch.GetPDFEditObject();
Hello B,
You can use the Insert method to add a blank page using the Alambic API: http://help.objectiflune.com/files/EN/alambicedit-api/AlambicEdit.html#583f5a961100ee612edb0a70c3ffb01a
Regards,
~Evie
Excellent! I’m on the right track!
So far, my coding is as follows, but it invokes an error on line 3 (shown below).
var myPdf = Watch.GetPDFEditObject();
myPdf.Open(Watch.GetJobFilename(), false);
myPdf.Pages.Insert(myPdf.Pages.count);
myPdf.Save(false);
The error invoked :
Starting plugin Run Script - 14:29:53
Run embedded script…
W3602 : Error 0 on line 3, column 1: Microsoft JScript runtime error: Object doesn’t support this property or method
W3603 : Error running script.
Run Script: W1603 : Plugin failed - 14:29:53 (elapsed time: 00:00:00:012)