Planet PDF Forum Archive

Planet PDF ForumWowsers! This is page is old, head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner to in-depth developer and pre-press discussions. If you wish to continue... one & two archive covers 1999-2011 (160,000 pages).


New Forum | Previous | Next | (P-PDF) Developers


Topic: ERROR: this.insertPages is not a function
Conf: (P-PDF) Developers, Msg: 105856
From: DHayes1978
Date: 2/12/2004 06:20 AM

I am trying to write a javascript that adds a menu item that will insertpages based on the users input. It works as a batch, but I really want to use it as a menu item. I have found that it will work with 2 functions, but when I through a third function in the code I get an error telling me that this.insertPages is not a fuction. Here is what I am doing:

//Test Code//

function R354007(){
console.show();
console.clear();
console.println("This is a test.");
this.insertPages(this.numPages-1, "/Rocklin_01/Techservices$/Unreleased Shopfiles/3500/354007.pdf");
}

function Diaphragm(){
var Diaphragm = app.response({cQuestion: "Diaphragm Assembly:", cTitle: "DIAPHRAGM"});
switch (Diaphragm){
case "35-40-07" :
R354007();
break
}
}

function Test(){
Diaphragm();
}

//*********** CODE **********//

app.addSubMenu({cName: "Energy", cParent: "Tools"});



//Print Package Menu

app.addSubMenu({cName: "PrintPackage", cUser: "Print Package", cParent: "Energy", nPos: 0});

app.addMenuItem({cName: "QuadGuard", cParent: "PrintPackage", cExec: "Test()", nPos: 0});

Please Help if you know what I can do. I really appriciate the help.

Donny


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

Debenu PDF Tools Pro

It's simple to use and will let you preview and edit PDF files, it's a Windows application that makes...

Download free demo

Back to the past, 15 years ago! Open Publish 2002

Looking back to 2002, it's amazing how much of the prediction became a reality. Take a read and see what you think!

September 14, 2017
Platinum Sponsor





Search Planet PDF
more searching options...
Planet PDF Newsletter
Most Popular Articles
Featured Product

Debenu PDF Aerialist

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Features

Adding a PDF Stamp Comment

OK, so you want to stamp your document. Maybe you need to give reviewers some advice about the document's status or sensitivity. This tip from author Ted Padova demonstrates how to add stamps with the Stamp Tool along with related comments.