Predefined command in my customized toolbar

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

islandmyth
User
Posts: 18
Joined: Sat Jul 11, 2009 12:49 pm

Predefined command in my customized toolbar

Post by islandmyth »

:arrow: 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.

Thank you
Warm Regards,

islandmyth
http://imyth.weebly.com

Contrary to what is generally believed is often the truth
islandmyth
User
Posts: 18
Joined: Sat Jul 11, 2009 12:49 pm

Re: Predefined command in my customized toolbar

Post by islandmyth »

by the way I am currently using the free version. :)
Warm Regards,

islandmyth
http://imyth.weebly.com

Contrary to what is generally believed is often the truth
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Predefined command in my customized toolbar

Post by Stefan - PDF-XChange »

Hey islandmyth,

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.

Regards,
Stefan
islandmyth
User
Posts: 18
Joined: Sat Jul 11, 2009 12:49 pm

Re: Predefined command in my customized toolbar

Post by islandmyth »

Hi! Thanks.. I see. Is there any version that I can create my own commands and add js to them?

By the way, in the free/portable version, can I use the js?


Gracias
Warm Regards,

islandmyth
http://imyth.weebly.com

Contrary to what is generally believed is often the truth
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Predefined command in my customized toolbar

Post by Stefan - PDF-XChange »

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.

Regards,
Stefan
islandmyth
User
Posts: 18
Joined: Sat Jul 11, 2009 12:49 pm

Re: Predefined command in my customized toolbar

Post by islandmyth »

Yeah it is open... Thank you.

Have a nice day
Warm Regards,

islandmyth
http://imyth.weebly.com

Contrary to what is generally believed is often the truth
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Predefined command in my customized toolbar

Post by Stefan - PDF-XChange »

I am glad everything is fine now.

You too have a nice day!
Stefan
islandmyth
User
Posts: 18
Joined: Sat Jul 11, 2009 12:49 pm

Re: Predefined command in my customized toolbar

Post by islandmyth »

Hello guys,

Thank you for being so attentive. You rock guys 8)
Warm Regards,

islandmyth
http://imyth.weebly.com

Contrary to what is generally believed is often the truth
User avatar
Chris - PDF-XChange
Site Admin
Posts: 797
Joined: Tue Apr 14, 2009 11:33 pm

Re: Predefined command in my customized toolbar

Post by Chris - PDF-XChange »

Our pleasure islandmyth :D :D
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.


Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: Predefined command in my customized toolbar

Post by cew »

@Stefan:
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#)?

Thank you!

Best regards,
cew
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Predefined command in my customized toolbar

Post by Stefan - PDF-XChange »

Hello cew,

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.

Best,
Stefan
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: Predefined command in my customized toolbar

Post by cew »

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.

Btw: we use PDF-XChange Viewer SDK

What do you think?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Predefined command in my customized toolbar

Post by Stefan - PDF-XChange »

Hello Cew,

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).

Best,
Stefan
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: Predefined command in my customized toolbar

Post by cew »

That's what I feared...

Do you have a timeline for version 3?

Best ragards
cew
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Predefined command in my customized toolbar

Post by Stefan - PDF-XChange »

Hi Cew,

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 ;)

Best,
Stefan
cew
User
Posts: 213
Joined: Tue Feb 01, 2011 8:14 am

Re: Predefined command in my customized toolbar

Post by cew »

That looks great,
thank you!

Best regards
cew
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19885
Joined: Mon Jan 12, 2009 8:07 am

Re: Predefined command in my customized toolbar

Post by Stefan - PDF-XChange »

Our Pleasure Cew!

Cheers,
Stefan