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: RE: importing document level javascript
Conf: (P-PDF) Developers, Msg: 57481
From: kt
Date: 5/29/2002 05:26 PM





Dave,


You can embed the .js files as data objects, then use JS to install them on
the host machine, but they won't be available for use until the user
relaunches Acrobat. Also, .js files aren't "importable" into documents, per
se. They are "imported" by the host app (Acrobat) into global space.

New menu items created in JS have to be created either by actions invoked in
the js console, or by .js scripts that are loaded at app launch time.
Otherwise, you're looking at doing a compiled plugin to add the menu item.
Again, though, this is an installation procedure for the user and requires a
relaunch of Acrobat.

Kas Thomas




>>-----Original Message-----
>>From: p-pdf-developer Listmanager
>>[mailto:listmanager@forum.planetpdf.com]
>>Sent: Tuesday, July 31, 2001 1:19 PM
>>Subject: importing document level javascript
>>
>>
>>From: "Dave"
>>
>>--- Planet PDF Forum | http://forum.planetpdf.com ----
>>
>>I have developed a number of document level javascripts for
>>field validation. There are several PDF forms that I would
>>like include these in, and I'm looking for a way to import
>>these doc-level scripts into multiple PDF docs. Users are
>>accesing the PDFs remotely over the web, and I don't want
>>users to have to copy a .js file into thier
>>acrobat/javascripts/ directory.
>>
>>What I would like to do is to add a menu item that would
>>allow a forms developer to select the function from a menu,
>>and have acrobat import the selected script into a PDF doc.
>>
>>I can create a .js file for the forms developers (I've
>>already added menu items to create standard fields in a PDF doc).
>>
>>I know could always have them cut-and-paste the code into
>>each new PDF, but I was hoping for a programatic method.
>>
>>thanks in advance
>>-dave
>>
>>
>>------- Planet PDF Store's Top 10 List for May ---------
>>
>> ARTS Split and Merge - Stamp PDF - Jaws PDF Creator
>> Gemini - Amyuni PDF Converter - Crackerjack - BCL Drake
>> iCopy - ARTS Import - Mapsoft Impress Stamper
>>
>> Find out why these were the best-selling products last
>> month. Free demos of each at the Planet PDF Store!
>> http://www.pdfstore.com/
>>
>>---- Powered by foxitsoftware.com & www.PlanetPDF.com ----
>>

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.