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: AVGrafSelectGetBoundingRect return bad or my bad?, 2 Attachments
Conf: (P-PDF) Developers, Msg: 39213
From: jfreels
Date: 4/24/2002 10:59 PM

Background:
Win2k on Intel, MSVisual C++ 6, Acrobat 4 SDK, Acrobat 4 and 5

Problem:
I am trying to use AVGrafSelectGetBoundingRect to retrieve the rect of the highlighted text. The command is very strait forward, but somehow it is returning unwanted results. Please look at the attached images for a visual of exactly what is going wrong.

Code:
if(ASAtomFromString("Text") == AVDocGetSelectionType(avDoc)){
  grafSel = (AVGrafSelect)AVDocGetSelection(avDoc);
  AVGrafSelectGetBoundingRect(grafSel, &bbox);
  AVPageViewRectToDevice(pageView, &bbox, &myRect);
  AVPageViewDrawRectOutline(pageView, &myRect, 5, NULL, 0);
}

Thanks in advance!

-jb

I do a search for TechnologiesAnd this is what gets outlined?!?!?!