cmd.document.signatures.placesign  SOLVED

PDF-XChange Editor SDK for Developers

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Paul - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

cmd.document.signatures.placesign

Post by prime clinical systems »

Hi, I need to know how to find if this tool has been activated, but I find that annot.type is "Stamp" and activetool = "Stamp"
I tried to check for event fired when button is clicked, but the e.newStampThumbs which fires is the same as for thumbs in stamps collection, so I need to find the cmd.ID I believe, but how do I get that, to test if equal to p_uiInst.CmdManager.cmd(frmPdfEditNew.PDF.Inst.Str2ID("cmd.document.signatures.placesign")).ID
Reason is I want to insert a time date stamp under this type of annotation, but not other stamp type annotations.
Thanks
CE
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: cmd.document.signatures.placesign

Post by Sasha - PDF-XChange »

Hello Clifford,

You can use the method described here:
https://forum.pdf-xchange.com/ ... 82#p108382

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: cmd.document.signatures.placesign

Post by prime clinical systems »

Hi well, here I go again vb6, translated the code with a class in vb6 but can't get the onNotify to fire at all, so I guess I'll go the easy route and just add my own button to my own toolbar, and execute the action from there and hide on the toolbar. So hard this new control, before life was easy, sad to not have an event for button click directly that vb6 users could use, but oh well.
ce
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: cmd.document.signatures.placesign

Post by Sasha - PDF-XChange »

Hello Clifford,

Can you please give us your translated code so that we can test it in our environment?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: cmd.document.signatures.placesign

Post by prime clinical systems »

Fast answer but please read my question first my friend. Cmd Handler does NOT work in vb6, does not fire the onNotify event at all, so to go around that, I wanted to execute the command and that way I would know what command was clicked,
Thanks
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: cmd.document.signatures.placesign

Post by prime clinical systems »

Why cannot you just fix the bug with the ExecUI command and be done with that, it does not execute, and I have wasted many many hours creating a separate class module to invoke the cmd handler, and oh well, I just want at least this to work.

CE
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: cmd.document.signatures.placesign

Post by prime clinical systems »

sorry, I thought you were replying to my latest post, see that one
https://forum.pdf-xchange.com/ ... 66&t=29133

ce
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: cmd.document.signatures.placesign

Post by Sasha - PDF-XChange »

Hello Clifford,

Replied you there. And again, I will ask you for your IUIX_CmdHandler class implementation if you want us to investigate this issue, because we are not VB6 experts and we will spend much time to translate it.
As for the handler itself, by inspecting the command itself, from what I see, you will have to monitor a OnGetItemSubMenu method.

Cheers,
ALex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: cmd.document.signatures.placesign

Post by prime clinical systems »

By the way, searching in the events list I found these two undocumented events:
e.uiCmdBeforeExecute = 2391
e.uiCmdExecuted = 2392

Neither fires clicking any of the buttons, are they supposed to? would be great if they did, to avoid the cmdhandler issue

ce
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: cmd.document.signatures.placesign

Post by Sasha - PDF-XChange »

Hello Clifford,

I will quote myself again:
You cannot execute a command that does nothing - it's only a submenu container that's all.
That command is not being executed thus the events are not being fired. As fro the documentation - I've done first half of the Events - working on the second one.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: cmd.document.signatures.placesign

Post by prime clinical systems »

Again, there are not any commands that fire those events, not one, and fine, I'll let it alone
ce
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: cmd.document.signatures.placesign

Post by Sasha - PDF-XChange »

These events are being fired before and after the execution of the commands not the popup menu showing.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: cmd.document.signatures.placesign

Post by prime clinical systems »

Try it, no not one of them fires, I clicked every button on the cmd bars, not one fires, but just drop it, just going to eliminate this feature

ce
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: cmd.document.signatures.placesign

Post by Sasha - PDF-XChange »

Have you enabled this event for listening in the IPXV_Control?
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: cmd.document.signatures.placesign

Post by prime clinical systems »

on loading the project I loop through every single event found, and enable it, and I tried the OnGetItemSubMenu does not fire either, so I give up, thanks anyway.
For j = 1 To 10000
sString = PDF.Inst.ID2Str(j)
Call PDF.EnableEventListening2(j, True)
' If Err.Number = 0 Then
' Debug.Print i, sString
' End If
Err.Clear

Next j
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: cmd.document.signatures.placesign

Post by Sasha - PDF-XChange »

Well then that's something VB6 related then - all of my advised methods work well in C#/C++.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prime clinical systems
User
Posts: 211
Joined: Sun Aug 05, 2012 5:20 pm

Re: cmd.document.signatures.placesign

Post by prime clinical systems »

You can now close this item, was related to the other
Thanks
CE
Sasha - PDF-XChange
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: cmd.document.signatures.placesign  SOLVED

Post by Sasha - PDF-XChange »

Marking as closed then.
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ