-
1. Re: How to print my custom annot?
lrosenth Nov 23, 2010 3:32 AM (in response to ChromeUser)Meaning it has N, D, and R values in the Appearance dictionary? Or something else?
-
2. Re: How to print my custom annot?
ChromeUser Nov 23, 2010 5:08 AM (in response to lrosenth)If not N/D/R value how to print them?
For these 3 appearances are printed according to my annot's custom state.
-
3. Re: How to print my custom annot?
lrosenth Nov 23, 2010 5:45 AM (in response to ChromeUser)You have two choice.
1 - write the proper appearance into the N value, since that's what is printed
2 - install the necessary callback to update the appearance at print time.
-
4. Re: How to print my custom annot?
ChromeUser Nov 23, 2010 6:00 AM (in response to lrosenth)Sounds like i have not descript my requirement clearly.
Let me descript my context:
I want my annot to be showed with appearance 1 if user dose not install my plugin.
So this appearance should be N value, right?
But this appearance is not the right appearance,it tells user that to install my plugin.
The right appearance may be some other value.
I need to print this right appearance,this is my requirement.
I also think i should install some callback to print appearance if it's not N value.
But i hava not found which callback to install.
There is a PDAnnotGetPrintApperanceProc(may be) in PDAnnotHandler,but seems that this method not opened for reader.
whick callback do you mean?
-
5. Re: How to print my custom annot?
lrosenth Nov 23, 2010 6:14 AM (in response to ChromeUser)Whatever is in N will be used at all times UNTIL the annotation is modified or your plugin overrides normal drawing. So if you need something else, install the necessary custom annotation handler routines via your plugin and it can then do whatever drawing it wants.
Yes, if your annotation has a GetPrintAppearance handler installed, it will get called - even in Reader.
-
6. Re: How to print my custom annot?
ChromeUser Nov 23, 2010 5:59 PM (in response to lrosenth)I try to install PDAnnotHandlerGetPrintAppearanceProc callback.
But when i try to call PDRegisterAnnotHandler to register PDAnnotHandlerRec, it cannot be compiled.
Show me that:
"error C2065: 'PDRegisterAnnotHandlerSELPROTO' : undeclared identifier"
if i don't use READER_PLUGIN macro,it's ok.
So which callback should i use under Adobe Reader?
-
7. Re: How to print my custom annot?
lrosenth Nov 24, 2010 4:15 AM (in response to ChromeUser)Are you using the Acrobat 9 SDK?
-
8. Re: How to print my custom annot?
ChromeUser Nov 24, 2010 4:58 AM (in response to lrosenth)No,i'm using Acrobat 8 SDK.
For i want my plugin be supported by Adobe Reader 8&9
Does this callback is opened on Acrobat SDK 9 for Reader?
-
9. Re: How to print my custom annot?
lrosenth Nov 24, 2010 5:26 AM (in response to ChromeUser)8 should be fine, and it's been there for a while.
-
10. Re: How to print my custom annot?
ChromeUser Nov 24, 2010 6:00 AM (in response to lrosenth)But it's not working for me,and search PDAnnotHandlerRegister in this forum found that some others meet the same problem with me.
So i wonder that if this method is opened for Acrobat SDK 8.
Anyway, i'll try it on Acrobat SDK 9.
Thanks.
-
11. Re: How to print my custom annot?
ChromeUser Nov 24, 2010 7:36 PM (in response to lrosenth)Sir,I still cannot use PDRegisterAnnotHandler method even i use Acrobat SDK 9 version1
I do not know how to resolve this problem.
-
12. Re: How to print my custom annot?
lrosenth Nov 25, 2010 6:08 AM (in response to ChromeUser)Bets answer I can give you is to submit a formal support request with a compilable code snippet that demonstrates the problem.
-
13. Re: How to print my custom annot?
ChromeUser Nov 25, 2010 4:56 PM (in response to lrosenth)Does that means i should post a code snippet here?
Or you submit directly?


