SetProtection 【初心者向けWordPressブログ始め方!完全解説】

TCPDFは、PDFドキュメントを生成するためのPHPクラスです。TCPDFは2002年に初めて公開され開発が進められてきた無料のオープンソースソフトウェアです。現在公開されているPHPのPDFライブラリはいくつかありますが、その中でも機能面で一番優れていて実績もあります。

SetProtection( $permissions = array(‘print’, ‘modify’, ‘copy’, ‘annot-forms’, ‘fill-forms’, ‘extract’, ‘assemble’, ‘print-high’), $user_pass = ”, $owner_pass = null, $mode = 0, $pubkeys = null )
Set document protection Remark: the protection against modification is for people who have the full Acrobat product. If you don’t set any password, the document will open as usual. If you set a user password, the PDF viewer will ask for it before displaying the document. The master password, if different from the user one, can be used to get full access. Note: protecting a document requires to encrypt it, which increases the processing time a lot. This can cause a PHP time-out in some cases, especially if the document contains images or fonts.


タイトルとURLをコピーしました