Note: su root first or add sudo on all codes
Get the source:
$ cd [temporary-directory-you-want-to-save-installer]
$ wget http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip
$ unzip pdftk-1.44-src.zip
$ cd pdftk-1.44-dist
$ cd pdftk
$ wget http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/pdftk-1.44-src.zip
$ unzip pdftk-1.44-src.zip
$ cd pdftk-1.44-dist
$ cd pdftk
Install gcj libraries:
$ yum install java-1.5.0-gcj-devel
Install gcc-c++ libraries
$ yum install gcc-c++
Build the makefile: (please check the spelling)
$ make -f Makefile.Redhat
Install the pdftk, this will take some time:
$ cp pdftk /usr/local/bin
Check if it is installed successfully;
$ pdftk --version
To view the field names of a form in the pdf, type:
$pdftk test.pdf dump_data_fields
No comments:
Post a Comment