fpdm
fpdm copied to clipboard
Add read only option
Add read only option for merging and setting the value of a field.
Example usage in a Drupal module: https://www.drupal.org/project/fillpdf_fpdm/issues/3146452
Related issue: #2
This is very minor yet very useful addition. Is there anything else which needs to be done to get this in?
There's a problem. This overwrites all other /Ff flags with the read only flag. Removing multiline, scrolling line etc.
See; https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/pdf_reference_archives/PDFReference.pdf
What should happen is fpdm should read the current /Ff flags for a field and add this to it for read only.
It might be better to have an option to set all /Ff flags directly so we can decide on a field by field basis.