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
I wanted to make my own toolbar and have a customized command on it.
Could it be possible? I noticed that you are using java and I wanted to make my own commands for a special function for my viewer.
You can create custom toolbas and add all the commands you want to them, but only from the existing list.
You can't create a custom command or assign JS to a button.
Is there any version that I can create my own commands and add js to them?
Not an end user one. There are the SDKs but you will have to program your own application - much more complicated than writing some JS, and also the SDKs are not free
y the way, in the free/portable version, can I use the js?
The JS console is opened with Ctrl + J
I have not tried it in free mode but I presume it should work - you can test it for yourself.
Tracker Supp-Stefan wrote:
There are the SDKs but you will have to program your own application - much more complicated than writing some JS, and also the SDKs are not free
Could you please give me more informations on how to realize custom commands in my own application (C#)?
It will depend on what you want your "custom command" to do, and which would be the most appropriate SDK for this.
Please provide us with some more details and we should be able to point you in the correct direction.
Also have a good look at the samples already provided - maybe what you are trying to achieve is already shown in one of the samples.
What we want to do is the following:
The user selected a text within the opened pdf.
Then he klicks a button within a toolbar.
Now our application gets the selected text out of users selection with "GetAllSelectedText" and starts a fulltext search in our background database.
It would be enough, if the button just fires an event which our application could hande and do the rest.
I just spoke with Corwin (he has answered some of your other posts), and he confirmed that the current Viewer SDKs do not support adding custom buttons in our component, so you will need to keep using what you have already done - have this button in your main interface (outside our control), and make it call the GetAllSelectedText.
The possibility to include custom buttons in the Viewer interface is on the radar for the devs, but when will that happen we can not tell at this time (it will probably be after the initial release of ver3 of the Viewer and the SDKs).
The initial release is planned for before the end of Q2 - but no specific date is yet available. Here you can have a look at a small presentation we have made for the end user version - but it still lists some new features