Ommiting prompt on RotateCW and RotateCCW commands

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

marcoscmonteiro
User
Posts: 37
Joined: Thu Jan 01, 1970 12:00 am

Ommiting prompt on RotateCW and RotateCCW commands

Post by marcoscmonteiro »

I would like to ommit prompt when I first execute RotateCW or RotateCCW commands. The message displayed does not make sense for my application because it does not show PDFXChange menu items.

This prompt does not raise PXCVA_OnDisplayPrompt event so I can't change message or ommit it (I attach a image of prompt)

Any way?
You do not have the required permissions to view the files attached to this post.
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: Ommiting prompt on RotateCW and RotateCCW commands

Post by Walter-Tracker Supp »

Can you try passing the PXCVA_NoUI flag to the Flags argument?

Here is the enum:

Code: Select all

enum PXCVA_Flags
{
PXCVA_NoApply       = 0x00000001,
PXCVA_NoUI          = 0x00000002,
PXCVA_GetNamed      = 0x00000004,
PXCVA_Sync          = 0x00000008,
PXCVA_OutArgs       = 0x00000010,
};
marcoscmonteiro
User
Posts: 37
Joined: Thu Jan 01, 1970 12:00 am

Re: Ommiting prompt on RotateCW and RotateCCW commands

Post by marcoscmonteiro »

Not works. The prompt still appears with PXCVA_Flags.PXCVA_NoUI.
Walter-Tracker Supp
User
Posts: 381
Joined: Mon Jun 13, 2011 5:10 pm

Re: Ommiting prompt on RotateCW and RotateCCW commands

Post by Walter-Tracker Supp »

What is the text of the prompt? Is it the warning about changes not taking effect unless the file is saved?

If not, could you tell us the text you receive in the prompt?

If yes, I will find out if there is a way to disable it.

Also, if you could post the call you are using to initiate the RotateCW command that would be helpful.
marcoscmonteiro
User
Posts: 37
Joined: Thu Jan 01, 1970 12:00 am

Re: Ommiting prompt on RotateCW and RotateCCW commands

Post by marcoscmonteiro »

Command I'm calling

Code: Select all

Dim vDataOut as Object = 0
pPDFXChangeAX.DoVerb("", "ExecuteCommand", "RotateCW", vDataOut, PDFXCviewAxLib.PXCVA_Flags.PXCVA_NoUI)

'or 

pPDFXChangeAX.DoVerb("", "ExecuteCommand", "RotateCCW", vDataOut, PDFXCviewAxLib.PXCVA_Flags.PXCVA_NoUI)
The message displayed is in the first post attach as a png file. I'm transcribing it below:

Note: this function will rotate pages for this work session only - no changes are saved to the original file, to save selections permanently, use the 'Rotate Pages' function under the 'Document' Menu.

Same message is displayed when I use keyboard shortcuts CTRL+SHIFT+PLUS or CTRL+SHIFT+MINUS

It would be nice if there is a solution that does not show the prompt even if I use a keyboard shortcut or programming commands
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: Ommiting prompt on RotateCW and RotateCCW commands

Post by Stefan - PDF-XChange »

Hi marcoscmonteiro,

Some prompts will fire even if the NoUI flag is on unless you specifically turn them off

This one in particular is
"Prompts.RotatePagesViewWarn",(simple boolean, default value is "true")

To turn it off use:

Code: Select all

pPDFXChangeAX.SetProperty("Prompts.RotatePagesViewWarn", "false", 0)
Please check Vasyl's post here:
https://forum.pdf-xchange.com/ ... 538#p40538
Where he lists some more of these undocumented prompts.

Best,
Stefan
marcoscmonteiro
User
Posts: 37
Joined: Thu Jan 01, 1970 12:00 am

Re: Ommiting prompt on RotateCW and RotateCCW commands

Post by marcoscmonteiro »

Thanks, it works!
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7371
Joined: Wed Mar 25, 2009 10:37 pm

Re: Ommiting prompt on RotateCW and RotateCCW commands

Post by Paul - PDF-XChange »

:)
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com