All of these tasks work well and up until now we were just using the standard Print (DocuViewareAPI.Print) and Save (DocuViewareAPI.Save) methods to allow the user to save and print the documents. However, for our needs we are wondering if its possible to bypass the standard modal forms that pop up after clicking the Print and Save buttons. By this I mean the small modal windows that allow you to customize the print options (i.e. Destination, Content, Pages, etc.) and save options (File name, Destination format, pages, etc.). For our needs we always want to have the same settings (i.e. always save as pdf with all pages and annotations) and not give the users any means to change or even see these settings. Is there a way to call the Print and Save methods without popping up the modals first, just go directly to the browser's standard Print and Save As dialogs? Basically cut out the middle step of showing the settings modal. Maybe something along the lines of AddRectangleAnnotInteractive where you pass in the properties to the method so you don't need to pop up the 'Rectangle Annotation Properties' modal each time. Is there a similar type way of calling the Print and Save functionality?
Code: Select all
function RedactContent(ViewerName) {
rectProperties = {
fill: true,
fillColor: "#000000",
stroke: false
}
var enabledProperties = [];
DocuViewareAPI.AddRectangleAnnotInteractive(ViewerName, rectProperties, false, enabledProperties);
}
Our experience with working with third-party API's like this is very limited so we could just be missing some things about this process.
Any help or ideas would be appreciated.
Thanks