PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)
Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
gives me an object required error. I know this isn't a java support site but a clear example would be very helpful.
Any help would be appreciated.
Your code doesn't follow the Adobe Javascript specification for how this function is to be called. An example of valid syntax would be:
this.insertPages({nPage:this.numPages-1, cPath:"InsertExampleSource.pdf"});
You may have been confused by the fact that the PDF-XChange documentation doesn't specify how the function parameters are to be passed. That's because they follow the Adobe specifications. You need to have a copy of the Adobe Javascript programming reference, which you can get here: http://www.adobe.com/devnet/acrobat/javascript.html