I've been trying to add a watermark to a password protected pdf (protect to write only) with fpdf and fpdi.
It works on normal pdfs but when it is password protected it gives this error:
FPDF error: This document (upd/509ae4a4044df9a43e03e09b4cf772b0.pdf) probably uses a compression technique which is not supported by the free parser shipped with FPDI.
It makes sense that it isn't possible to write on the document but while searching I've seen similar problems getting resolved.
Thanks in advanced.