Donate Share

TCPDF - PHP class for PDF

Subscribe

Problem setprotection() with multicell()

  1. 2009-11-04 10:18:25 UTC

    Hello, I have switched from fpdf to tcpdf and it works great.

    But now I stumbled across a problem. I use the protection feature for my documents: $pdf->SetProtection(array('print','copy'));

    And I also use the multirow()/multicell() function (example 20 from the TCPDF page). I did not change much, left column is aligned left and border is off.

    Here's the problem: When I copy text from the document and paste it into word, notepad or whatever, I just get rectangles. Characters/text from header and footer work. If I remove the setprotection function call, I can copy and paste text from the Multicells as expected.

    Has anyone here a similar problem? I would like to protect my document (allowing only print and copy) but still allow users to copy text from the Multirow.

    Thanks, Oliver

  2. 2009-11-04 17:15:48 UTC

    I?m unable to reproduce your problem. Try to update to the latest TCPDF version and test starting from example n. 16.

  3. 2009-11-06 07:37:09 UTC

    I just asked my admin, we indeed run an older version (4.2.003). I will try to update to the latest version and see if it happens again.

    Thank you!

  4. 2009-11-09 08:05:55 UTC

    You were right, switching to 4.8.014 solved the problem apparently.

    Thank you!

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.