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: How to test if annots are visible on screen?
Conf: (P-PDF) Developers, Msg: 134288
From: pcatch
Date: 6/10/2005 10:08 AM

I'm still trying to develop a relatively simple C++ Acrobat6 plug-in with, amongst other things, a short-cut key driven function to display the next annotation not currently visible on screen. I thought the PDAnnotIsCurrentlyVisible function would help;

if (PDAnnotIsCurrentlyVisible (annot, PDDocGetOCContext(pdoc))) {
AVAlertNote("Annot Visible");

but apparently not - they all seem to be "visible" even if offscreen and even when hidden.

Should I be using another "context" and if so how would I get it?

Another approach might be to get the rectangle associated with each annotation and compare its co-oridinates with those of the visible screen area. I can get the annotation positions OK, but not the visible screen area - any suggestions on how to do this?

Does anyone have any other suggestions for solving this problem? The up/down arrow buttons in the Comments List pane come very close to what I'm after, but I can't figure out a way of accessing them programatically to get to work with a short-cut, which unfortunately is a must.

Any suggestions would be greatly appreciated

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.


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.