Article View: adobe.acrobat.sdk
Article #134Re: Use acrobat standard tool in custom annotation plugin
From: A._Mas
Date: Wed, 25 Mar 2009 15:43
Date: Wed, 25 Mar 2009 15:43
24 lines
1943 bytes
1943 bytes
Sorry, i have to admit, i don't know what kind of headers you are refering to. I'm new to the Acrobat development. Do you have some more details on that?
I thought about a callback, too. So i implemented the
AVAppRegisterNotification(PDAnnotWasCreatedNSEL,....
callback. But for a reason it doesn't work. It does not keep the color.
I first used the AVAppRegisterNotification(PDAnnotDidChangeNSEL,......
callback. There it work good and changed the color. For example i drew a red line (standard color) and when i released the mousebutton, the "DidChange" callback was called a couple of times and the color was set correct. But i has some unwanted side effects.
The "WasCreate" callback understandably just gets called once. So i asume the color is set to early.
But what can i do? Any idear?
This is my code for setting the color:
PDColorValueRec pdColorValue;
memset(&pdColorValue, 0x00, sizeof(pdColorValue));
pdColorValue.space = PDDeviceRGB;
pdColorValue.value[0] = fixedZero;//R
pdColorValue.value[1] = fixedZero;//G
pdColorValue.value[2] = fixedOne;//B
PDAnnotSetColor(lAnnot, &pdColorValue);
Is it the wrong layer for this time/stadium? Do i have to go to the COS layer?
If you could help i would be great...
Thanks a lot!
Technical Details
Message-ID:
<59b85b8f.6@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b85b8f.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: 10177e,dcccde70c492f825 X-Google-Attributes: gid10177e,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: A._Mas@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.acrobat.sdk Subject: Re: Use acrobat standard tool in custom annotation plugin Message-ID: <59b85b8f.6@webcrossing.la2eafNXanI> Date: Wed, 25 Mar 2009 08:43:45 -0700 References: <59b85b8f.-1@webcrossing.la2eafNXanI> Lines: 33 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit