Impression de document
Imprimer des documents
- Objet: getARenderJS().getPrintJSAPI()
Fonction Description askShowPrintDialog() Affiche la popup d’impression askPrintAllDocumentPages() Demande une impression de tous les documents registerNotifyDocumentPrintEvent(notifyDocumentPrintTriggeredHandler) Enregistre un callback à appeler en cas d’impression de document
scripts/example.js
function arenderjs_init(arenderjs_)
{
arenderjs_.getPrintJSAPI().registerNotifyDocumentPrintEvent(
function(documentId, action, isAnnotationsIncluded, isWatermarksIncluded) {
arenderjs_.getCurrentUserName(function(name) {
var currentDate = new Date();
console.error(
"The user " + name +
" triggered a download document of type " + action +
" on documentId=" + documentId +
" are annotations included=" + isAnnotationsIncluded +
" are watermarks included=" + isWatermarksIncluded +
" at " + currentDate
);
});
}
);
}