Pdf Handler
http://sourceforge.net/projects/pdfhandler/
This is my latest project in java.
Its a small command line utitlity to process pdf documents.
Its developed with the help of iText pdf APIs.
Right now I have added few features with it and released the initial version of 11.09 ( Don't panic with the version number. Its combinations of year and month).
To run this utility just follow the below format,
The exe is mainly for windows users.
If you are using some other OS then just make use of the JAR file. which is in the released zip file.
The features are,
Command Format :
Pdfhandler.exe merge <<file names separated by space>>
The final name will be name of the target file name.
Ex:
Pdfhandler.exe merge F:\Sekar\dev\Books\DesignJava.pdf F:\Spring_Tutorial.pdf merge.pdf
It supports page numbers as its range values. Based on the given page ranges the new documents will be created.
Command Format :
Pdfhandler.exe split <<Source File name>> <<page range limits separated by space>>
Ex:
Pdfhandler.exe split F:\Sekar\dev\Books\designjava.pdf 1 23 s34-37 40-45
The above command will create below documents with the pages of original document,
1.pdf
23.pdf
34.pdf
35.pdf
36.pdf
37.pdf
40-45.pdf
It will use the range values as new document's file names.
The "s" prefix indicates that from page 34-37 will be splitted into single pages.
If you didn't mention it in prefix then by default it will considered as normal page range for a single document (Ex : 40-45.pdf). (Right now the utility will act like that. Latter on I will modify this with additional features.)
If you want to protect your pdf files by encyption and decryption.
The encrypted document can be opened with the password only.
Command Format :
Decryption:
Pdfhandler.exe decrypt <<Encrypted Source pdf file name>> <<Password>> <<Decrypted output file name>>
Encryption:
Pdfhandler.exe encrypt <<Source pdf file name>> <<Password>> <<Encrypted output file name>>
Note: You can also mention the output folder as last parameter. If you are not given then it will use the current folder as output folder.
Command Format :
Pdfhandler.exe sign << input.properties file>>
Ex:
Pdfhandler.exe sign input.properties
The above command will create signed documents based on the given properties file.
Sample properties file is also shipped with the build.
Note:
To sign a document the end users needs to create a keystore file using the java keytool.
To know more about keytool and keystore file please go through the below link,
http://download.oracle.com/javase/1.5.0/docs/tooldocs/windows/keytool.html
If you want to learn more on this please search this on web.
http://sourceforge.net/projects/pdfhandler/
This is my latest project in java.
Its a small command line utitlity to process pdf documents.
Its developed with the help of iText pdf APIs.
Right now I have added few features with it and released the initial version of 11.09 ( Don't panic with the version number. Its combinations of year and month).
To run this utility just follow the below format,
Pdfhandler.exe <<action name>> << Options specific to the action >>
The exe is mainly for windows users.
If you are using some other OS then just make use of the JAR file. which is in the released zip file.
The features are,
- Document Merge
Command Format :
Pdfhandler.exe merge <<file names separated by space>>
The final name will be name of the target file name.
Ex:
Pdfhandler.exe merge F:\Sekar\dev\Books\DesignJava.pdf F:\Spring_Tutorial.pdf merge.pdf
- Doument Splitter
It supports page numbers as its range values. Based on the given page ranges the new documents will be created.
Command Format :
Pdfhandler.exe split <<Source File name>> <<page range limits separated by space>>
Ex:
Pdfhandler.exe split F:\Sekar\dev\Books\designjava.pdf 1 23 s34-37 40-45
The above command will create below documents with the pages of original document,
1.pdf
23.pdf
34.pdf
35.pdf
36.pdf
37.pdf
40-45.pdf
It will use the range values as new document's file names.
The "s" prefix indicates that from page 34-37 will be splitted into single pages.
If you didn't mention it in prefix then by default it will considered as normal page range for a single document (Ex : 40-45.pdf). (Right now the utility will act like that. Latter on I will modify this with additional features.)
- Encryption / Decryption
If you want to protect your pdf files by encyption and decryption.
The encrypted document can be opened with the password only.
Command Format :
Decryption:
Pdfhandler.exe decrypt <<Encrypted Source pdf file name>> <<Password>> <<Decrypted output file name>>
Encryption:
Pdfhandler.exe encrypt <<Source pdf file name>> <<Password>> <<Encrypted output file name>>
Note: You can also mention the output folder as last parameter. If you are not given then it will use the current folder as output folder.
- Document Signer
Command Format :
Pdfhandler.exe sign << input.properties file>>
Ex:
Pdfhandler.exe sign input.properties
The above command will create signed documents based on the given properties file.
Sample properties file is also shipped with the build.
Note:
To sign a document the end users needs to create a keystore file using the java keytool.
To know more about keytool and keystore file please go through the below link,
http://download.oracle.com/javase/1.5.0/docs/tooldocs/windows/keytool.html
If you want to learn more on this please search this on web.