Knowledge Base - How to flatten annots

Below you can find an example on how to flatten annots in PDFs.

These methods work only with premium license.

 

Here's an example of flatAnnots method when reader is shown.

flatAnnots method will flatten every PDF's annotations:

function didShowReader()
{
            console.log("--- Callback: didShowReader");
            RadaeePDFPlugin.flatAnnots(null,
                               function(message) {
                               console.log("Success: " + message);
                               },
                               function(err) {
                               console.log("Failure: " + err);
                               });
}

Here's an example of flatAnnotAtPage method when reader is shown.

flatAnnotAtPage method will flatten every specific PDF page's annotations:

function didShowReader()
{
            console.log("--- Callback: didShowReader");
            RadaeePDFPlugin.flatAnnotAtPage({page:2},
                               function(message) {
                               console.log("Success: " + message);
                               },
                               function(err) {
                               console.log("Failure: " + err);
                               });
}      
Applies To

RadaeePDF SDK for Cordova

Details

Created : 2018-11-20 16:35:16, Last Modified : 2018-11-22 09:31:18