16.05.2014 Views

3-Heights™ PDF Security Shell - PDF Tools AG

3-Heights™ PDF Security Shell - PDF Tools AG

3-Heights™ PDF Security Shell - PDF Tools AG

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3-Heights <strong>PDF</strong> <strong>Security</strong> <strong>Shell</strong>, Version 4.2 Page 34 of 35<br />

July 8, 2013<br />

6.3 General Switches<br />

-v Verbose Mode<br />

This option turns on the verbose mode. In the verbose mode, the steps performed by 3-Heights <strong>PDF</strong><br />

<strong>Security</strong> <strong>Shell</strong> are written to standard output.<br />

Example: Enable verbose mode:<br />

pdfsecure -v in.pdf out.pdf<br />

Processing file in.pdf<br />

Done.<br />

-lk<br />

Set License Key<br />

Pass a license key to the application at runtime instead of installing it on the system.<br />

6.4 Return Codes<br />

All return codes other than “0” indicate an error in the processing.<br />

Table: Return Codes<br />

Value<br />

Description<br />

0 Success<br />

1 <strong>PDF</strong> Input File could not be opened or invalid parameters<br />

2 <strong>PDF</strong> Output File could not be created<br />

3 Invalid option or option values were entered<br />

4 <strong>PDF</strong> Input File is encrypted and password is incorrect or not provided<br />

5 Cannot create signature<br />

6 Cannot get response from OCSP or TSP<br />

7 Input file contains invalid signatures (validation)<br />

10 License error<br />

Possible reasons for return code 5 are:<br />

Cannot create a session (or CSP)<br />

The certificate store is not available<br />

The certificate cannot be found<br />

The private key is not available<br />

Incorrect signature length<br />

Return code 6 can be considered as a warning, i.e. non-critical. It means the document was correctly<br />

signed, but due to a HTTP missing connection to the OCSP or time server it does not contain either<br />

revocation information or a time stamp.<br />

<strong>PDF</strong> <strong>Tools</strong> <strong>AG</strong> – Premium <strong>PDF</strong> Technology

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!