mikehaertl/php-pdftk

Can we add readOnly attribute to field?

czcpf opened this issue · 5 comments

czcpf commented

Hello, Is it possible to add a readOnly attribute when using fillForm Method? If there is some other way please advise.

Never heard about readonly attributes. Is this a PDF feature? And does any pdftk version support it? Note that this library is just a PHP wrapper around pdftk. So you should first check there for missing features.

czcpf commented

Hmm, so how would a XFDF file look with these attributes? Our XfdfFile class right now only deals with form data and the generated XML looks like this:

https://github.com/mikehaertl/php-pdftk/blob/master/tests/files/XfdfFileTest.xfdf

If you have XFDF with flags, did you test if pdftk can process it?

@czcpf Where you able to test it?

czcpf commented