Skip to main content
January 20, 2017
Question

Need Help on Acrobat SDK

  • January 20, 2017
  • 1 reply
  • 301 views

Dear Sir,

I want to create a FreeTextCallout annotation, and want to define the key

"CL", I don't know, how to create the array of the coordinate[x1 y1 x2 y2

x3 y3], I think following code is not correct, please help.

        CosNewNameFromString(cdoc, false, "FreeTextCallout");

        CosDictPutKeyString(cAnnotObj, "IT", cStringObj);

        CosObj ArrayObj = CosNewArray(cdoc, false, 6);

        CosObj IntObj = CosNewInteger(cdoc, false, 236);

        CosArrayPut(ArrayObj, 0, IntObj);

        IntObj = CosNewInteger(cdoc, false, 512);

        CosArrayPut(ArrayObj, 1, IntObj);

        IntObj = CosNewInteger(cdoc, false, 200);

        CosArrayPut(ArrayObj, 2, IntObj);

        IntObj = CosNewInteger(cdoc, false, 512);

        CosArrayPut(ArrayObj, 3, IntObj);

        IntObj = CosNewInteger(cdoc, false, 170);

        CosArrayPut(ArrayObj, 4, IntObj);

        IntObj = CosNewInteger(cdoc, false, 480);

        CosArrayPut(ArrayObj, 5, IntObj);

        CosDictPutKeyString(cAnnotObj, "CL", ArrayObj);

[ Mod: Personal information and email signature removed ]

This topic has been closed for replies.

1 reply

Karl Heinz  Kremer
Community Expert
Community Expert
January 20, 2017

What exactly happens when you run your program? Do you have an exception handler (DURING/HANDLER block) around your code? If so, is it reporting an exception?