Ian McLean
Ian McLean
Can you submit a pull request?
pdftk is used for some features. Search for "pdftk" in the source to see where it is required. https://github.com/codeshell/fpdm/blob/master/src/fpdm.php For example, currently fpdm requires pdftk to flatten a pdf. See...
For a pure PHP solution if you can't or don't want to use pdftk, please review the pull request to add a "read only" option to prevent editing: #31
All that's needed is a flag added to the field: ` /Ff 1` . See [PDF Reference](https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/pdf_reference_archives/PDFReference.pdf) There's a lot of repeated code for calculating the offset which could probably...
Adding support in the linked PR might help move things along. Does it work for you?
It's supported by fpdm if you have pdftk, but it would be nice to have it as pure PHP.
This looks like a duplicate of #19
Example usage in a Drupal module: https://www.drupal.org/project/fillpdf_fpdm/issues/3146452
Related issue: #2