Undo method

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

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

krsh007
User
Posts: 17
Joined: Wed Sep 02, 2009 6:19 am

Undo method

Post by krsh007 »

Hi All

When executing the "Undo" command right after applying a stamp the UI behaves in a unpredictable fashion. It can happen that just the borders of the previously applied stamp is visible and when selecting another tool it disappears. But when trying to click at the stamp still visible and try to move it around (this is just one of the actions) the application crashes somewhere inside the viewer component.

First I did is that I removed the call to "Undo" operation from context of an event handler (i.e. Property changed) to execute the command in "normal" context but the behaviour is the same ...

Is there anything to take into account when executing commands via interface functions rather than being triggered by the UI? The manual is not quite verbose in that respect...

The version information of component reads as "2.0.0042.0003" for client & server version - SetDevInfo is done sucessfully with license codes ...

Any help and hints are very much appreciated - btw, I think I have posted this accidently also in another forum ... sorry for that

Kind regards,
Klaus
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Undo method

Post by Vasyl - PDF-XChange »

We cannot reproduce this trouble... :(
Can you send me example of your code(and your PDFXCviewAx.dll, PDFXCview.exe, Resource.dat files) for testing and fixing it?
This trouble can be reproduced for any standard stamp("Draft" for example) or for some custom stamps only?
Is there anything to take into account when executing commands via interface functions rather than being triggered by the UI? The manual is not quite verbose in that respect...
For this case behavior of the viewer-control should be identical.

Thanks.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
krsh007
User
Posts: 17
Joined: Wed Sep 02, 2009 6:19 am

Re: Undo method

Post by krsh007 »

Hi,

The order as to how to repro the effect is as follows:

Set the "KeepToolSelected" property for stamp to false. This is necessary to recognize active tool transitions. In my case I need to get notified about "Stamp applied" --> when user is applying a stamp a subsequent "Tools.Active" OnPropertyChange notifies about this ... the "Tools.Active" transitions back to "Handtool" ...

When I do now some calls to the JavaScript, in other words I am retrieving all annotation properties, and furtehrmore I dedect from the results a particular stamp being applied (contained in the results) then I am doing another call to JavaScript raisinga question to the user which can be answered with yes / no - in case the answer is no I invoke the "UNDO" command which reverts the previous action (in this case applying the stamp) - this also reverts back the modified flag if applicable

What happens next is that the applied annotation disappears from comment pane but the "stamp shape" as obviously being still selected by the control is visible --> clicking somewhere outside but in the controls area finally makes the selection invalid and the "shape" disappears ----> BUT when the user tries to move around the "undone applied shape" the control crashes and just the container application/form is visble ... what is expected? The undo operation shall also cancel any selections that might propably be present after applying / inserting particular annotation

I need to find a way that allows for invoking any operations and commands also from the flow of programm - btw there are numerous points in documentation that in deed do not work as described - for instance all the collections about styles available with various tools and further the entire description of commands available, especially those who are not named but available as per the PDF XCHange Viewer Control Demo that comes with the SDK ... Do you have propably a more accurate and complete API documentation on hand?

Any help in that respect is very much appreciated.

Cheers,
Klaus
krsh007
User
Posts: 17
Joined: Wed Sep 02, 2009 6:19 am

Re: Undo method

Post by krsh007 »

I did a document conataining additional info, code snippets and screenshots - its a pdf file but I am not allowed to attach it?????????
krsh007
User
Posts: 17
Joined: Wed Sep 02, 2009 6:19 am

Re: Undo method

Post by krsh007 »

Hi again,

Here is additional info
UNDO.rar
You do not have the required permissions to view the files attached to this post.
krsh007
User
Posts: 17
Joined: Wed Sep 02, 2009 6:19 am

Re: Undo method

Post by krsh007 »

- the problem can be reproduced with any type of stamp , regardless of standard stamps or customized ones
- the dlls are from the package as available for download ( I did the download on 5.9.2009 in order and hope that this problem might be solved)
- in conjuction with annotations, in particular with stamps there are a numerous amount of questions I'd like to raise:

1.) What files and respective location (Registry, Local Harddrive...) are having influence on the controls behaviour such as stamps collections?

2.) When doing customized stamp collections I receive undocumented events (such as for hidden stamp collection ...)

A more in depth understanding would be very helpfull in utilizing the SDK the right way.
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: Undo method

Post by Vasyl - PDF-XChange »

Thanks for your reply.
This trouble reproduced. Will be fixed in the next build (possibly as soon as next week).
1.) What files and respective location (Registry, Local Harddrive...) are having influence on the controls behaviour such as stamps collections?
Please use the search options on our forums, it is described already...
2.) When doing customized stamp collections I receive undocumented events (such as for hidden stamp collection ...)
These events are still undocumented because they are used internally by the viewer control, and this functionality is not ready for developer use, but for the End-Users functions only.

It will be available for development use in the future.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.