Highlighting art on document when ArtHandle is known

I have a list of art (handles) from current document, collected by applying some filter.
I show a entry in a list box on my plugin panel dialog for each art handle I have selected.
Now I want to implement a mechanism to highlight the corressponding art, when I select it from the list box (say on double click of the list's entry).
To highlight I take the approach as
1. Annotation around the art
2. Bringing the art in the visible area.
1. Annotation :
For annotation I understand we need to have a AIAnnotatorDrawer for "sAIAnnotatorDrawer->DrawRect".
In the SDK sample, this AIAnnotatorDrawer  is taken from the notifier's message.
In my case, I don't want any notification, but want to draw the rectangle and then erase it. I know the art's handle, hence can find location and bounds of the art.
I have acheived it throught "sAIShapeConstructor->NewRect", but this modifies the document's artwork. Hence, was checking the annotator.
2. Bringing the art to visible area :
Solution is "AIDocumentViewSuite::SetDocumentViewCenter" ??
Please help me out with some sample reference / suite for pt#1. And please verify pt#2.
A totally different way to highlight the art knowing its handle is also welcome.

The AIDocumentViewSuite has everything you need to center on the selected art. I can't remember off the top of my head, but we've got almost exactly what you're talking about in our plugin and the centering stuff was pretty easy. Just poke through that header, it shouldn't be a problem. Just bear in mind that you might need to use one of its methods to convert from page coordinates to 'view coordinates' (which are basically pixels).
As for the annotation, that's fairly easy for something like this, so long as you understand annoations. There are several threads on that already, explaining the basics, and if you're not familliar with them I'd go read them first. But assuming you grasp the basics of annotations, here's the high level for what you're looking for:
Use AIArtSuite::GetBounds() on the handle you want to denote
Call AIAnnotatorSuite::InvalAnnotationRect() on the bounds from Using the bounds from (1), after converting them into document view coordinates using the AIDocumentViewSuite (very easy).
Assuming you've registered an annotator with Illustrator, you should get a caller/selector for drawing the annotation. The message will include an AIAnnotatorDrawer, which you'll need to actually draw your mark up.
Draw whatever it is you want around the art; you'll probably want to cache the art in question so you know what art you're supposed to be marking up.
One thing to note: to clear the annoation (let's say you can pick nothing on your list) you'd do steps (1) & (2) and you'd just do nothing in (3) or (4). For us, in that situation I just clear the cached handle and then in (3) & (4) I do nothing if the handle is null.
Additional notes: AIDrawArtSuite::DrawHilite() is a nice method you can use to hilite paths. It works on other types of art, but it looks best on paths.

Similar Messages

  • On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom new document in order to open one. How can i have directly a new document when i click on pages icon

    On my mac when i click on pages, a new document doesn't open instantly  but a window with my files open and then  have to click on the left bottom < new document> in order to open one. How can i have directly a new document when i click on pages icon

    How to open an existing Pages document?
    Click Pages icon in the Dock to launch Pages.
    When Pages is open, click File menu in the  Pages menu bar.
    Select “Open”.
    When the select document  dialog box opens up, highlight/select the document and click “Open”
    at the bottom right corner of the dialog box.
    s
    https://support.apple.com/kb/PH15304?locale=en_US

  • My Mac got hacked. I was working on a word document when the computer suddenly started typing meaningful sentences on its own that describes how the hacker is skillful. At the that time I was on a password protected wifi and file sharing was off.

    This is the first time I get hacked this bad. I was working on a microsoft word document when the computer suddenly started typing meaningful sentences on its own that describes how skillfull the hacker is. At the that time I was on a friends wifi network that is password protected (not sure about the encyrption), the Os X Firewall was on. I was using the admin profile, however, file sharing was off. I'm very careful not to install any suspecious 3rd party software.
    So far I have verified permissions and fixed some errors there, and changed passwords.
    Do I have to erase/format my computer and reinstall the Os? If so is it adequte to use the internet recovery tool or will it use old and possibly infected EFI/Root files?
    Would appreciate the advice of all the Mac experts out there. Thanks

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software — potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions — they’re easy to carry out and won’t change anything on your Mac. 
    These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing. 
    Below are instructions to enter some UNIX shell commands. The commands are harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of the procedure suggested here, search this site for other discussions in which it’s been followed without any report of ill effects. 
    Some of the commands will line-wrap or scroll in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then copy it. The headings “Step 1” and so on are not part of the commands. 
    Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply. 
    Launch the Terminal application in any of the following ways: 
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.) 
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens. 
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid. 
    When you launch Terminal, a text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” and press return. You should then get a new line ending in a dollar sign. 
    Step 1 
    Triple-click anywhere in the line of text below on this page to select it:
    kextstat -kl | awk '!/com\.apple/{printf "%s %s\n", $6, $7}' | open -ef
    Copy the selected text to the Clipboard by pressing the key combination command-C. Then click anywhere in the Terminal window and paste (command-V). I've tested these instructions only with the Safari web browser. If you use another browser, you may have to press the return key after pasting. A TextEdit window will open with the output of the command. If the command produced no output, the window will be empty. Post the contents of the TextEdit window (not the Terminal window), if any — the text, please, not a screenshot. You can then close the TextEdit window. The title of the window doesn't matter, and you don't need to post that. No typing is involved in this step.
    Step 2 
    Repeat with this line:
    { sudo launchctl list | sed 1d | awk '!/0x|com\.(apple|openssh|vix\.cron)|org\.(amav|apac|cups|isc|ntp|postf|x)/{print $3}'; echo; sudo launchctl getenv DYLD_INSERT_LIBRARIES; echo; sudo defaults read com.apple.loginwindow LoginHook; echo; sudo crontab -l; } 2> /dev/null | open -ef
    This time you'll be prompted for your login password, which you do have to type. Nothing will be displayed when you type it. Type it carefully and then press return. You may get a one-time warning to be careful. Heed that warning, but don't post it. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. 
    Note: If you don’t have a login password, you’ll need to set one before taking this step. If that’s not possible, skip to the next step. 
    Step 3
    { launchctl list | sed 1d | awk '!/0x|com\.apple|org\.(x|openbsd)/{print $3}'; echo; launchctl getenv DYLD_INSERT_LIBRARIES; echo; crontab -l 2> /dev/null; } | open -ef
    Step 4
    ls -A /e*/{cr,la,mach}* {,/}Lib*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Spo,Sta}* L*/Fonts .la* 2> /dev/null | open -ef
    Important: If you formerly synchronized with a MobileMe account, your me.com email address may appear in the output of the above command. If so, anonymize it before posting. 
    Step 5
    osascript -e 'tell application "System Events" to get name of login items' | open -ef
    Remember, steps 1-5 are all copy-and-paste — no typing, except your password. Also remember to post the output. 
    You can then quit Terminal.

  • How do you highlight text in document in Pages

    How do you highlight text in document in Pages

    but Pages is NOT a 3rd party app.  it's an application that's programmed by apple.  it's supposed to act something like Word in MS office, but that is not at all true. 
    choices for editing text, highlighting, et al., like what you find in MS Office Word, should be immediately available whenever you are inside of a Pages document, but that is not the case. 
    don't you wish that when you buy an apple app for apple/macs that is supposed to be like a windows something or another that it really is? 

  • Highlight the bookmarked text when clicking bookmark link?

    I have severeal bookmarks on one page of the PDF. Is it possible to have the PDF set up so that it will highlight the bookmarked text when the bookmark link is clicked? Or something that would make it easier to find the bookmarked section of the document. I am using Acrobat 9. Thanks!

    A bookmark (go to page view type action) doesn't really link to text, it links to a page and view setting (zoom, and possibly scroll). So this isn't an option with such a link.

  • Highlighter colors look muddy when printed from Acrobat 8, X, and Reader XI to Xerox WC7775, 7665

    Highlighter colors look muddy when printed to Xerox WC7775, 7665(applies to Acrobat 8 Std, Acrobat X Std, Reader XI).  I tried the latest PS and PCL6 drivers from xerox.com.  How can I troubleshoot / fix this so highlighter colors look bright when printed? 
    When printing highlighted text from other applications (like Word) from the same computers to the same printers, the highlighter color is bright.  Users print PDFs for distribution to clients so they would like the printed documents to look good.
    Thanks

    I have tried the WCS sRGB, scRGB and ICC U.S. Web Coated (SWOP) v2 color profiles.  sRGB and scRGB are very slightly brighter than the default and SWOP but still much more muddy than the bright yellow from a Word document.  I just started digging in to this today so any helpful hints would be greatly appreciated. 

  • A PDF file was filed in documents. when trying to move this file to trash i got response : operation can't be completed because the itempdf is in usen

    A PDF file was filed in DOCUMENTS, when trying to move this PDF file to trash I got the response: "Operation can't be completed because the item ..... is in use".
    How do I get this document deleted from the system?

    The suggestion to move items from documetns to desktop and then moving to trash is the one that worked.
    I have now one other question and that is that during my strugle with the original problem I called with Apple helpline and there they suggested to move the application "Preview" to trash and then the  issue would be solved. I did so but clearly the issue was not solved.
    Bottom line is that with your solution I got rid of the PDF files, but I still need to reinstall the Preview application. Do you have suggestions how to do that??

  • How do I prevent Pages from changing earlier parts of a document when I am in an 8 page newsletter. Going back to check something and items are jumbled up!

    How can I stop Pages from changing parts of a document when I am progressing through an 8 page newsletter. When I go back to check something some headings have moved and been put out of context. I can't lock the individual pages of the document to prevent this happening.

    The Amazon iWork '09 is a DVD in a boxed set.
    Downloading is transferring something from the Internet.
    I think you are talking about not having a DVD drive?
    To install the DVD version, either get an external USB DVD drive, they are cheap on eBAy or borrow another computer and drag the iWork Installer onto a USB Flash Drive and install from that.
    Peter

  • How do I change the font size of a document when I PRINT?

    How to I change the font size of a document when I print it?

    To specifically and fully answer your question, no, you absolutely cannot change the “font size” as a function of print.
    First of all, there isn't a single “font size” associated with a PDF file (and we assume you are referring to a PDF file since this is an Acrobat forum).
    Secondly, PDF is a final form file format meaning that the content is static in terms of location, size, etc. on the page. To change the point size of any particular text, you really need to go back to the source document and make the changes there.
              - Dov

  • Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels. For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one .. Than

    Hello, I use photoshop cc 10 days and I did a lot of files with layers and channels.
    For two days in two different locations that only happens in some documents when you reopen the job done no more .. Example 6 channels on the facts I see only one ..
    Thank you for your attention.
    Annalisa 

    Don't understand what you writing here.  Screen shoots would be most helpful.
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • What software is needed to be able to open the olm file I have exported from Outlook to my documents when transfering my Microsoft Office Contacts to my Mac Addressbook?

    what software is needed to be able to open the olm file I have exported from Outlook to my documents when transfering my Microsoft Office Contacts to my Mac Addressbook?

    You might find a solution here: how to convert microsoft outlook contacts to apple address book - Google Search
    OT

  • Error message KI248 on delivery document when posting goods issue

    Hi,
    On the delivery document, when posting goods issue I get the following message:
    "Account 60700000 requires an assignment to a CO object
    Message no. KI248
    Diagnosis
    All given account assignment objects (order, project) are defined as statistical.
    System Response
    Statistical orders or projects are ignored when FI and CO are reconciled. You must enter a cost center, order, project, or cost object to which the costs are posted for CO postings.
    Procedure
    Enter a cost center, an order, a project, or a cost object that is not statistical. The posting row affected is 000 and the account is 60700000."
    On the sales order I have a statistical order.
    CO-PA is active, cost element 607 is included in PA transfer structure.
    I also tried with cost center allocation in OKB9.
    60700000 is defined  as a cost element (category 1).
    Any suggestion could be helpfull.
    Thanks,
    Lavinia

    Hi,
    Thank for your answer.
    I tested with element cost category 12, it's working, but not the way I need: I don't have any value on the cost center.
    When I don't have statistical order in sales order, the sistem it's working exactly how I need: the costs are posted on cost center and the VPRS condition is transfered to CO-PA on profitability segment.
    Anyway, I finaly make it work with a cost center substitution.
    Lavinia

  • When trying to upload a MS word file (.docx) to gmail, it uploads into a folder that doesn't contain the original document when i try to download it from e-mail.  how do i solve this?

    when trying to upload a MS word file (.docx) to gmail, it uploads as a 'folder' that doesn't contain the original document when i try to download it back from the e-mail.  how do i set the format to simply upload the document itself???  Thanks...

    Yes, excuse me. attach a file.  I have separate folders on my desktop to organize my word documents, so I'm guessing this might be a part of the problem.  When I go to attach one of these documents into gmail, the resulting attachment is another folder icon (not the original organizational folders) with 4 subfolders containing a slew of .xml files reading things like "header.xml" "format.xml" "settings.xml" "style.xml" "contenttype.xml" There are also a few .jpegs and a small folder reading "word" as one of the subfolders.

  • Why do I not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task?

    We are trying to use workflows to review and edit pdf files in sharepoint 2010. We are having a couple of issues and am hoping someone has the answer.....
    1)  When myself and coworkers click on the pdf document in the library, we get the check out option as expected.  However when we click on the document
    link in a workflow task (on the sharepoint site), the pdf opens as a temporary file and we do not get the check out option.  Why does this happen????? 
    2)  The same thing happens when we click on the document link in the workflow task email;   HOWEVER,  one of our co-workers does get the
    check out option when clicking on the link in the email task.  Why would she get the checkout option using the email and not when clicking on the link in the task list on the sharepoint site ????  We have compared our internet settings and adobe
    settings to ours and found no differences.
    We are using Sharepoint 2010, Windows 7, IE8, Adobe Reader X or XI.  Some of us have Adobe Pro X and have the same issues.

    Hi,
    According to your post, my understanding is that you could not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task.
    I try to reproduce the issue, however, no matter when I click the pdf type document in the library or click on the pdf document link in the workflow task email, it download the pdf doucment and then I can open it.
    It will be better if you can descript how you
    get the check out option as expected when you click on the pdf document in the library.
    Then I upload a
    word type document to the library, no matter when I click the word type document in the library or click on the word document link in the workflow task email, I can open the word document directly and get the check out option as expected.
    I recommend to use the other type docuemts to check whether the check out option works.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?

    Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?
    The add annotations field shows as not allowed in the security options. So how do I send this form back with the changes??

    I think you you need to click 'save' first, then it is saved to acrobat, where it will prompt to send.

Maybe you are looking for