The command line application ImagePDF Image to PDF OCR Converter can be used to convert image to searchable PDF document and encrypt PDF with user or owner password in the conversion process. This article will show you how to make this kind of conversion.
At first, please click the following button to download free trial version of ImagePDF Image to PDF OCR Converter and then extract the ZIP file to your computer. In the unzipped folder, there is an executable file named as img2pdfocr.exe which is the called program for the conversion from image file to searchable PDF document.
Please open MS-DOS interface and then please follow the command line template below to write your commands.
img2pdfocr [options] <Image-file> [<PDF-file>]
In order to secure PDF document, you will need to use the options shown below:
-openpwd <string> : set 'open password' to PDF file
-ownerpwd <string> : set 'owner password' to PDF file
-keylen <int> : key length (40 or 128 bit)
-keylen 0: 40 bit RC4 encryption (Acrobat 3 or higher)
-keylen 1: 128 bit RC4 encryption (Acrobat 5 or higher)
-keylen 2: 128 bit RC4 encryption (Acrobat 6 or higher)
-encryption <int> : restrictions
-encryption 0: encrypt the file only
-encryption 3900: deny anything
-encryption 4: deny printing
-encryption 8: deny modification of contents
-encryption 16: deny copying of contents
-encryption 32: no commenting
===128 bit encryption only -> ignored if 40 bit encryption is used
-encryption 256: deny FillInFormFields
-encryption 512: deny ExtractObj
-encryption 1024: deny Assemble
-encryption 2048: disable high res. printing
-encryption 4096: do not encrypt metadata
There are some examples for you to understand:
img2pdfocr –openpwd 123 C:\input.jpg C:\output.pdf
img2pdfocr –openpwd 123 –ownerpwd 345 –keylen 0 C:\input.bmp C:\output.pdf
img2pdfocr –ownerpwd 789 –encryption 4 –encryption 8 C:\input.tif C:\output.pdf
The first example is to convert JPG image file to searchable PDF document and set open password as 123.
The second example is to make the conversion and set open password as 123 and owner password as 345. The password length is 40-bit.
The last example is to convert TIF to searchable PDF and set owner password as 789. The restrictions are set to deny printing and deny modification of contents.
If you are interested in this command line application, you are strongly recommended to free download ImagePDF Image to PDF OCR Converter to have a try and experience its powerful functions.