I followed the tutorial TCPDF example 16 to create a protected pdf document. The pdf was generated but the SetProtection properties did not seem to work. Did I miss anything? here is the example code.
$pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, ‘UTF-8’, false);
$pdf->SetProtection(array(‘print’), ‘’, null, 0, null);
$pdf->SetFont(‘times’, ‘’, 16);
$pdf->Write(0, ‘Can I copy?’, ‘’, 0, ‘L’, true, 0, false, false, 0);
Thanks!