pdftk官網(wǎng):https://www.pdflabs.com/tools/pdftk-server/
1、pdf文件使用Adobe Acrobat工具編輯表單域

2、安裝pdftk服務(wù)器
3、安裝pdftk擴(kuò)展包:composer require mikehaertl/php-pdftk
4、代碼中引入pdf拓展包,我這里用的是yii2框架,把擴(kuò)展包vendor目錄放入yii框架vendor目錄下,在入口文件index.php引入autoload.php

5、代碼實(shí)現(xiàn):
