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: Reader vs. Editor focus timing issues
Conf: (P-PDF) Developers, Msg: 134761
From: BTRC
Date: 6/19/2005 11:46 AM

I'm doing a pdf that has the "copy data to the clipboard" feature as a workaround for Reader users to save some of the data if they change a form I have in the document. A tip I found out about here, so a general thanks to the collective brainpower of this forum.

But, something is going wrong. I am using Acrobat Editor 5 and Reader 5. Specifically:

1) A Javascript function does a setFocus command to the field whose contents are to be copied to the clipboard. Works fine.
2) This field has the menu events "Select All" and "Copy" triggered by the "on focus" condition. This is done via the field parameters rather than app.execMenuItem, since that command doesn't seem to work and I do no have access to the infinitely large developer document that has the platform-independent command names to try those out.

Anyway, these two steps work flawlessly under the Editor, but when you run it under Reader, it selects all the -other- text items in the document rather than the contents of the field just focused on.

In Editor, it focuses on the field, then selects and copies the content, but in Reader, it selects and copies the content everywhere else, then focuses on the field.

What am I doing wrong here? Is there some other conditional that I can trigger these events off of to make it happen in the right order.

Any help appreciated.

Greg Porter

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

Five visions of a PDF Day

In the world of PDFs or as we like to say Planet (of) PDF, a year isn't a real PDF year without an intense few days of industry knowledge sharing.

May 15, 2018
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.


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.