codeshell/fpdm

Is pdftk a requirement for fpdm to work?

kvijaykiran opened this issue · 5 comments

Is fpdm a standalone php tool that can be used for filling PDF forms? Or does it require pdftk under the hood?

Thanks!

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 also: #23

@kvijaykiran - No it is not required if your PDF is already flat to begin with. However, if you receive an error, you might need to run pdftk server which is free.

Thank you, @reddingwebpro and @imclean557.

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

@kvijaykiran - No it is not required if your PDF is already flat to begin with. However, if you receive an error, you might need to run pdftk server which is free.

wait what? How can you fill the form if it's already flat?