Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

SetProtection() method #6

Closed
urielo opened this issue Sep 29, 2016 · 1 comment
Closed

SetProtection() method #6

urielo opened this issue Sep 29, 2016 · 1 comment

Comments

@urielo
Copy link
Contributor

urielo commented Sep 29, 2016

Hi man, if you have some time implement this please!!
In your file PdfWrapper.php

/**
     * Encrypts and sets the PDF document permissions
     * 
     * @param $permisson a array with permisson ex: ['copy','print',]
     * @param $user_password a string with user password
     * @param $owner_password a string with owner password
     * 
     */
    public function SetProtection($permisson = array(), $user_password,$owner_password){
        return $this->mpdf->SetProtection($permisson,$user_password,$owner_password);
    } 

thank you!!!

@niklasravnsborg
Copy link
Owner

niklasravnsborg commented Dec 21, 2016

d3faea8 did it! Thanks for your help. ☺️ I changed your code a little bit though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants