fpdm icon indicating copy to clipboard operation
fpdm copied to clipboard

Is pdftk a requirement for fpdm to work?

Open kvijaykiran opened this issue 5 years ago • 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!

kvijaykiran avatar Jul 24 '20 19:07 kvijaykiran

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: https://github.com/codeshell/fpdm/issues/23

imclean557 avatar Aug 02 '20 23:08 imclean557

@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.

reddingwebpro avatar Oct 28 '20 00:10 reddingwebpro

Thank you, @reddingwebpro and @imclean557.

kvijaykiran avatar Oct 28 '20 03:10 kvijaykiran

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

imclean557 avatar Oct 28 '20 04:10 imclean557

@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?

samsong avatar Jul 12 '21 11:07 samsong