Planet PDF Forum Archive

Planet PDF  ForumThe page you are viewing is part of our 160,000 page discussion forum archive. See below for PDF-related discussions spanning 1999-2008. To ask questions and get help, head to the live Planet PDF Forum.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Acrobat 6.0


Topic: Creating toolbar button in Adobe
Conf: (P-PDF) Acrobat 6.0, Msg: 89650
From: crid
Date: 6/12/2003 06:52 PM


This can be done using Acrobat JavaScript -- using the this.path property, and the lastIndexOf() and substring() methods in the JSObject. I've included the code that will do this below:

----------------------------------
//Directory to save file to
var dirPath = "/c/Temp/";

//Get full path to current file
fileString = this.path;

//Substring to look for
subString = "/";

//Get PDF filename only
var testString = fileString.substring(fileString.lastIndexOf("/")+1, fileString.length);

//Now save the file to the specified directory
this.saveAs(varPath + testString);
-----------------------------------

Now for the toolbar button -- you can do this using ARTS PDF Tools. This is a customisable toolbar for Adobe Acrobat, and what you can do is assign a JavaScript action to run when you click on a toolbar button (that you setup/create). I've created the tool for you here Yvan (see attached), you need to use the 'import tool' function in ARTS PDF Tools and you'll find it will appear on your Acrobat toolbar!

You can download a free evaluation of ARTS PDF Tools from here - www.aroundtablesolution.com/arts_pdf_tools.asp. You can still use the JavaScript code without using ARTS PDF Tools, but that means no cute little toolbar button.

I hope this helps...

- Chris.
___________________________________

Chris Dahl - CTO
ARTS PDF Solutions
chris.dahl@aroundtablesolution.com
http://www.aroundtablesolution.com/
ARTS - A Round Table Solution

PDF In-Depth Free Product Trials Ubiquitous PDF

Pitstop Pro

Now graphic arts professionals have even broader and more expert control over their PDF documents. With...

Download free demo

ARTS PDF Aerialist

The ultimate plug-in for Adobe Acrobat and #1 selling product at PDF Store. Advanced splitting, merging,...

Download free demo

Ubiquitous PDF: Got holiday catering?

Bret Thompson, chef and owner of LA's Milk restaurant on Beverly, has joined forces with the California Milk Processor Board to compile a set of dairy-based recipes for the holiday season.

November 20, 2008
Search Planet PDF
more searching options...




PDF Resources
Platinum Sponsor
Create & Edit PDF - Nitro PDF Software

ARTS PDF

Silver Sponsors

PDF-Tools enfocus

FileOpen PDFNet SDK: PDF Component. Cross-platform PDF library

PDF Converter: Create, Convert PDF to Word/Excel Solid Documents - PDF to Word Converter

Debenu: Desktop Document Management, Archiving and Tagging Software Visual Integrity: Convert, Create, Extract, Merge and Modify PDF

SmartSoft

Get Nitro PDF Professional
Featured Product

NITRO PDF Professional

Built from the ground up, the perfect desktop PDF product for business and enterprise. Nitro PDF Professional has an uncompromising feature set so you can create, combine, edit, collaborate on and...

Featured Event

Adobe Acrobat & PDF Central Conference 2008

September 23 - 25, 2008 - Minneapolis, Minnesota

Dedicated exclusively to Adobe Acrobat and PDF, the 2008 Adobe Acrobat and PDF Central Conference presents a unique opportunity to broaden your understanding of how PDF technologies can positively affect your business productivity.

Discover the new features of Acrobat 9 and expand your knowledge of PDF technology. Participate in various educational seminars, such as Acrobat Form Fundamentals, Acrobat Security, Creating PDF Portfolios, Scripting with the new Flash Annotation in PDF, JavaScript for Acrobat, and much more.

PDF Store Categories