You can then decrypt the PDF file (secured-1.pdf) with the input_pw option. $ pdftk unsecured-1.pdf output secured-1.pdf owner_pw XYZ Decrypt a PDF file with PDFtk You can use PDFtk to encrypt a PDF file with the owner_pw option. $ pdftk *.pdf cat output ALL_COMBINED.pdf Encrypt a PDF file PDFtk It will save you the effort of writing all the file names separately. For example, use *.pdf to show all the files with the. However, if you have a large number of PDF pages, you can use an asterisk (*) wildcards to indicate all the PDFs in your current working directory. The command above is suitable for scenarios where you only have a few PDF files to combine. $ pdftk mypdf1.pdf mypdf2 cat output mypdf3.pdf PDFtk The command will create a new PDF file named “mypdf3.pdf” that will have the merged contents of both “mypdf1.pdf” and “mypdf2.pdf” files. ![]() To combine several PDFs, you need to provide the names of the files and the output name of the single combined PDF. $ sudo rpm -i pdftk-2.02-1.*.rpm Snap $ sudo snap install pdftk Combine PDFs with PDFtk $ sudo yum install libgcjĭownload the Binary RPM file (available for both 64-bit and 32-bit architecture) with curl or wget. The first step is to install the libgcj dependency. $ sudo apt install pdftk-java Fedora, CentOS, and Red Hat You can install PDFtk on Debian and Ubuntu-based Linux distros with apt using the following command. ![]()
0 Comments
Leave a Reply. |