Case: #
Trigger custom function or action when viewer has finished loading the document and required files for displaying the PDF.
Demo: #
Process: #
We use onReady
function to detect the viewer state. These are added to DFLIP.defaults variable so that every flipbook on the page uses the customization.
<script>
jQuery(function(){
DFLIP.defaults.onReady = function(app){
alert("Viewer Ready");
console.log(app);
};
});
</script>