doCommand FlattenAnnots (ID: 36340)

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

Post Reply
rho123456
User
Posts: 6
Joined: Mon Jul 22, 2013 2:32 pm

doCommand FlattenAnnots (ID: 36340)

Post by rho123456 »

Is it possible to call 'FlattenAnnots' (ID: 36340) in a way that no dialog will be displayed?

Currently it will display two dialog boxes to confirm. I want to flatten without the need for any confirmation.

Thanks and regards
Ray
Nico - Tracker Supp
User
Posts: 205
Joined: Fri May 18, 2012 8:41 pm

Re: doCommand FlattenAnnots (ID: 36340)

Post by Nico - Tracker Supp »

Hi rho123456,

Thank you for your post.
You cannot get rid of the "Flatten Annotations" dialog, but you can turn off the second confirmation dialog through the User Interface check box.
These dialogs cannot be disabled programmatically either.
Another alternative is to use the following JavaScript call:

Code: Select all

this.flattenPages();
with the RunJavaScript() method.
Thanks.
Sincerely,
Post Reply