Skip to content

Commit e55a992

Browse files
committed
update readme, fix typo
1 parent 17d6ae3 commit e55a992

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,20 @@ the certificate must
1616
In Addition to nuget packages, the build process uses Microsofts [ILMerge](http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17630)
1717
tool to produce a consolidated single binary including all dlls.
1818

19-
Currently, the signatures created are not LTV capable, i.e they expire with the validity of the signing certificate
19+
Currently, the signatures created are not LTV capable for all certificates, i.e they may expire with the validity of the signing certificate
2020

2121
## usage
2222
```
23-
pdfsign v1.2.0, (c) 2019 icomedias GmbH
23+
pdfsign v1.3.0, (c) 2019 icomedias GmbH
2424
powered by iTextSharp 5.5 Copyright (C) 1999-2018 by iText Group NV
2525
Usage: pdfsign [OPTIONS]
2626
Sign a PDF file using a signing certificate
2727
2828
Options:
2929
-i, --infile=VALUE PDF input file
3030
-o, --outfile=VALUE output file for signed PDF
31+
-b, --backpage=VALUE PDF file to append to infile before placing
32+
signature (optional)
3133
-c, --certfile=VALUE PKCS12 signing certificate
3234
-p, --password=VALUE import password for signing certificate
3335
--thumbprint=VALUE thumbprint for signing certificate from windows
@@ -40,6 +42,11 @@ Options:
4042
-t, --contact=VALUE signature contact (gets embedded in signature)
4143
-s, --show show signature (signature field visible), on: -s+
4244
off: -s-, default on
45+
--page=VALUE page of the document to place signature: 1..n,
46+
last. default 1
47+
--template=VALUE Template for the signature text. use \n for line
48+
breaks, [name], [date] for substitution
49+
--dateformat=VALUE format for [date] substitutuin when using template
4350
--showvalidity show signature validity (deprecated), on: -
4451
showvalidity+ off: -showvalidity-, default off
4552
--tsa=VALUE URL of rfc3161 TSA (Time Stamping Authority)
@@ -60,9 +67,7 @@ Return Values:
6067
-3: Error getting secret key
6168
-4: Error getting certificate chain
6269
-5: Error processing input file
63-
-6: Error opening output file
64-
-7: Error generating signature
65-
```
70+
-6: Error opening output file```
6671
6772
## multiple signatures
6873

pdfsign/pdfsign.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static int Main(string[] args)
196196
cer = certs[0];
197197
} else
198198
{
199-
throw new InvalidOperationException("Certificate with specified thumbnail not found");
199+
throw new InvalidOperationException("Certificate with specified thumbprint not found");
200200
}
201201
System.Security.Cryptography.X509Certificates.X509Certificate2Collection certCol = new System.Security.Cryptography.X509Certificates.X509Certificate2Collection();
202202
System.Security.Cryptography.X509Certificates.X509Chain x509chain = new System.Security.Cryptography.X509Certificates.X509Chain();

0 commit comments

Comments
 (0)