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
Our Customer is requesting the ability to be able to rotate a selected page 90 degrees or 270 degrees in 1 command. Right now you have to call the "RotatePages" command which brings up a dialog requesting what type of rotation. Can you consider adding 2 or 3 new features (these would occur from 1 command without the dialog).
1. A feature that will allow the selected page to be rotated 90 degrees.
2. A feature that will allow the selected page to be rotated 270 degrees.
3. If you were feeling very generous, perhaps another than does 180 degrees.
We use a viewer within our product where the icons for the toolbar are shared across several 3rd party controls. We like the re-usability because it provides a consistent look-and-feel even though we hot-swap the underlying viewer. Anyway, right now we have a rotate clockwise icon and a rotate counter-clockwise icon. Our customer is complaining because it really doesn't matter which of these icons they pick, they still have to choose the rotate type from the Tracker pop-up.
Obviously we can resolve this by simply supplying an icon that just indicates rotatation and that would resolve the confusion. Our application is used in an environment where productivity and efficiency are extremely important so being able to do this in 1 click vs. 2 clicks would be very helpful.
Thanks,
Jon Stonis
Product Manager
Streamline Health
Hi Jon Stonis,
Actually you can rotate pages in current version of Viewer ActiveX.
For example to rotate selected pages you can use this code (Delphi sample):
I have found these commands in the current version that I am using (42.4). But If I put the command in the toolbar it is always grayed. To be honest the hint say "Rotate selected pages 180°" and I do not know how I can select a page, but I would be nice if it would not be necessary to select the page(s). Simple one click and it would be perfect to rotate all pages of the document.
Some minor (translation) points of this feature. I am using the italian translation:
- When I open the windows "rotate page" than the first lookup offers as choice "mi²", "180°" and "Ruota di 90° in senso antiorario". The first one of course is wrong. I do not know what should there be, but I suppose simple 90°
- In the page where I can put the button in the toolbar the 3 point "Rotate Selected Pages 180°/270°/90°" are not translated. Correct translation: "Ruota pagina di 180°/270°/90°". Also the hint has to be translated (the word selected is not translated). But before I translate also the hint it would be nice to understand if it is necessary to select the pages.
To rotate selected pages you need to select needed pages on "Pages pane" first. You can also rotate all pages in document by using "Rotate Pages" dialog. And of course you can make your own button on your application which will rotate document pages.
About localization problem - it seems like you have some old localization files. Try to update them to latest version.
I checked the language file - I suppose it is PDFXVW_IT.xml in the ...\PDF Viewer\Languages directory. It is indeed quit old, 4th November 2008. But I disinstalled my current version, double checked that this directory is deletes, reinstalled the current version and still have the language problems described.
The problem of the missing translation of the button and of the hint I have also when i choose as language German.
Thanks for tip that I have to select the pages first on the "Pages pane". Would it be possible to rotate all pages with this command if no page is selected (I usally hide the page panel)?