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?
Ommiting prompt on RotateCW and RotateCCW commands
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 37
- Joined: Thu Jan 01, 1970 12:00 am
Ommiting prompt on RotateCW and RotateCCW commands
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 381
- Joined: Mon Jun 13, 2011 5:10 pm
Re: Ommiting prompt on RotateCW and RotateCCW commands
Can you try passing the PXCVA_NoUI flag to the Flags argument?
Here is the enum:
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,
};
-
- User
- Posts: 37
- Joined: Thu Jan 01, 1970 12:00 am
Re: Ommiting prompt on RotateCW and RotateCCW commands
Not works. The prompt still appears with PXCVA_Flags.PXCVA_NoUI.
-
- User
- Posts: 381
- Joined: Mon Jun 13, 2011 5:10 pm
Re: Ommiting prompt on RotateCW and RotateCCW commands
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.
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.
-
- User
- Posts: 37
- Joined: Thu Jan 01, 1970 12:00 am
Re: Ommiting prompt on RotateCW and RotateCCW commands
Command I'm calling
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
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)
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
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: Ommiting prompt on RotateCW and RotateCCW commands
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:
Please check Vasyl's post here:
https://forum.pdf-xchange.com/ ... 538#p40538
Where he lists some more of these undocumented prompts.
Best,
Stefan
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)
https://forum.pdf-xchange.com/ ... 538#p40538
Where he lists some more of these undocumented prompts.
Best,
Stefan
-
- User
- Posts: 37
- Joined: Thu Jan 01, 1970 12:00 am
Re: Ommiting prompt on RotateCW and RotateCCW commands
Thanks, it works!
-
- Site Admin
- Posts: 7371
- Joined: Wed Mar 25, 2009 10:37 pm
Re: Ommiting prompt on RotateCW and RotateCCW commands

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