diff --git a/README.md b/README.md index 81c80b5..61f0104 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,11 @@ You can use via Facade like so: ```php PdfPasswordProtect::encrypt(storage_path('pdf/document.pdf'),storage_path('pdf/'.'encrypted-documented.pdf'),'janedoe'); ``` +Encrypt method in detail +* $inputFile and $outputFile has to be a path like `storage_path("pdf/document.pdf")` +``` +PdfPasswordProtect::encrypt($inputFile,outputFile,$password) +``` The final file will be located in `storage/pdf` as `encrypted-document.pdf`