upgraded latest viewer and things stopped working

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

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

raymond ho
User
Posts: 2
Joined: Wed Nov 20, 2013 11:20 pm

upgraded latest viewer and things stopped working

Post by raymond ho »

Used to use version 2.5 (214.1) and everything is fine.

Just updated to the latest version 2.5 351 and the following items related to annotation stopped working:
1. Ctrl-C, Ctrl-V, Del keys are no longer working

Use annotation tools to draw a few things and try to copy and paste or delete using the keyboard input. Doesn't work as if the ActiveX control is not getting them. However, using mouse right click and select from pop-up is working.


2. Using the DoVerb command with "ExecuteCommand", "Paste" also failed to paste the bitmap from the clipboard to the pdf (it used to work.)

Did I miss something in the new version?

Thanks for your help.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: upgraded latest viewer and things stopped working

Post by Tracker Supp-Stefan »

Hello raymond ho,

There should not be any significant changes between these builds. Could it be that you've implemented some code in the mean time that is e.g. trying to intercept shortcut commands and instead pass them to your main application to handle them?

Regards,
Stefan
raymond ho
User
Posts: 2
Joined: Wed Nov 20, 2013 11:20 pm

Re: upgraded latest viewer and things stopped working

Post by raymond ho »

The same codes react differently between the older and latest version.

e.g. executing the following codes in vb6 to paste an image from a picture box to the pdf

...
Clipboard.Clear
Clipboard.SetData Picture1.Picture, vbCFBitmap

Dim vDataIn As Variant, vDataOut As Variant
pdf1.DoVerb "", "ExecuteCommand", "Paste", vDataOut, 0
...

where Picture1 is a standard vb6 PictureBox with an image loaded and pdf1 is the PDFXchange ActiveX control.

The old version works as expected pasting the image on the PDF, but the new version won't.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: upgraded latest viewer and things stopped working

Post by Vasyl-Tracker Dev Team »

Hi, Raymond.

I just checked the latest 2.5.315 build couldn't reproduce any problem with copy/paste features. Please check: may be you forgot turn on the handling of keyboard shorts by
pdfViewer.SetProperty("General.AllowAllAccelerators", true);

Also I tested the ExecuteCommand with "Paste" - and it works too..

Please check again your code or provide simple sample to reproduce your problems..

Cheers.
Vasyl Yaremyn
Tracker Software Products
Project Developer

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