[]
        
(Showing Draft Content)

Wijmo_Pdf_Security

wijmo.pdf.security Module

Provides PDF encryption and permissions settings for the wijmo.pdf module.

Add this module on page to be able to use the wijmo.pdf.IPdfDocumentOptions.ownerPassword, wijmo.pdf.IPdfDocumentOptions.permissions and wijmo.pdf.IPdfDocumentOptions.userPassword properties while creating an instance of the wijmo.pdf.PdfDocument class:

import { PdfDocument, saveBlob } from '@mescius/wijmo.pdf';
import '@mescius/wijmo.pdf.security';

let doc = new PdfDocument({
   userPassword: 'abc',
   ended: (doc, args) => {
      saveBlob(args.blob, 'document.pdf');
   }
});

doc.end();

This module incorporates modified versions of the buffer, crypto-js and saslprep libraries.