Commits vergleichen
2 Commits
Autor | SHA1 | Datum | |
---|---|---|---|
4d40254f62 | |||
|
48cbf7830a |
3 geänderte Dateien mit 66 neuen und 3 gelöschten Zeilen
23
.SRCINFO
Normale Datei
23
.SRCINFO
Normale Datei
|
@ -0,0 +1,23 @@
|
||||||
|
pkgbase = pdf-sign
|
||||||
|
pkgdesc = Simple tool to sign PDFs using an saved signature
|
||||||
|
pkgver = 1.0
|
||||||
|
pkgrel = 1
|
||||||
|
url = https://github.com/svenssonaxel/pdf-sign
|
||||||
|
arch = x86_64
|
||||||
|
license = MIT
|
||||||
|
depends = ghostscript
|
||||||
|
depends = python
|
||||||
|
depends = qpdf
|
||||||
|
depends = poppler
|
||||||
|
optdepends = tk: for interactive usage
|
||||||
|
optdepends = pdftk: an alterative tool to process PDF for qpdf
|
||||||
|
source = pdf-create-empty
|
||||||
|
source = pdf-from-text
|
||||||
|
source = pdf-sign
|
||||||
|
source = empty-3inx2in.pdf
|
||||||
|
sha256sums = d6b3bd23a3fcf28561e152690332738babf5e71afde40e5727c643a5805ae76b
|
||||||
|
sha256sums = 4a509aa3e787c3e617f151bcd25dd93adf9af3af477562c64988f7784395d40d
|
||||||
|
sha256sums = 7b52792ead60257c57f4a12d727a882936f24b9cb3ae57d73beb90cdd7960707
|
||||||
|
sha256sums = a2fd2476c1d8364853c2382a8090d8fbc2f11fb4a535714e27a3069ce009eef3
|
||||||
|
|
||||||
|
pkgname = pdf-sign
|
39
PKGBUILD
Normale Datei
39
PKGBUILD
Normale Datei
|
@ -0,0 +1,39 @@
|
||||||
|
# Maintainer: Sebastian Tobie <archlinux@sebastian-tobie.de>
|
||||||
|
# based on the PKGBUILD of sulis
|
||||||
|
|
||||||
|
pkgname=pdf-sign
|
||||||
|
pkgver=1.0
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc='Simple tool to sign PDFs using an saved signature'
|
||||||
|
arch=('x86_64')
|
||||||
|
url='https://github.com/svenssonaxel/pdf-sign'
|
||||||
|
license=('MIT')
|
||||||
|
depends=(
|
||||||
|
'ghostscript'
|
||||||
|
'python'
|
||||||
|
'qpdf'
|
||||||
|
'poppler'
|
||||||
|
)
|
||||||
|
optdepends=(
|
||||||
|
'tk: for interactive usage'
|
||||||
|
'pdftk: an alterative tool to process PDF for qpdf'
|
||||||
|
)
|
||||||
|
source=(
|
||||||
|
'pdf-create-empty'
|
||||||
|
'pdf-from-text'
|
||||||
|
'pdf-sign'
|
||||||
|
'empty-3inx2in.pdf'
|
||||||
|
)
|
||||||
|
sha256sums=(
|
||||||
|
'd6b3bd23a3fcf28561e152690332738babf5e71afde40e5727c643a5805ae76b'
|
||||||
|
'4a509aa3e787c3e617f151bcd25dd93adf9af3af477562c64988f7784395d40d'
|
||||||
|
'7b52792ead60257c57f4a12d727a882936f24b9cb3ae57d73beb90cdd7960707'
|
||||||
|
'a2fd2476c1d8364853c2382a8090d8fbc2f11fb4a535714e27a3069ce009eef3'
|
||||||
|
)
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -Dm755 -T pdf-create-empty "${pkgdir}/usr/bin/pdf-create-empty"
|
||||||
|
install -Dm755 -T pdf-from-text "${pkgdir}/usr/bin/pdf-from-text"
|
||||||
|
install -Dm755 -T pdf-sign "${pkgdir}/usr/bin/pdf-sign"
|
||||||
|
install -Dm644 -T empty-3inx2in.pdf "${pkgdir}/usr/share/doc/pdf-sign/examples/empty-3inx2in.pdf"
|
||||||
|
}
|
|
@ -37,7 +37,7 @@ Run `pdf-sign -h`, `pdf-create-empty -h` or `pdf-from-text -h` for details.
|
||||||
* `gs` (Ghostscript)
|
* `gs` (Ghostscript)
|
||||||
* `qpdf` or `pdftk` (at least one of them)
|
* `qpdf` or `pdftk` (at least one of them)
|
||||||
* `pdfinfo`
|
* `pdfinfo`
|
||||||
* Copy one or both tools to a directory in your `$PATH`.
|
* Copy the tools to a directory in your `$PATH`.
|
||||||
|
|
||||||
**Installation on Debian**
|
**Installation on Debian**
|
||||||
|
|
||||||
|
@ -46,17 +46,18 @@ apt-get update
|
||||||
apt-get install -y coreutils git python3 python3-tk ghostscript pdftk poppler-utils
|
apt-get install -y coreutils git python3 python3-tk ghostscript pdftk poppler-utils
|
||||||
git clone https://github.com/svenssonaxel/pdf-sign.git
|
git clone https://github.com/svenssonaxel/pdf-sign.git
|
||||||
cd pdf-sign
|
cd pdf-sign
|
||||||
cp pdf-sign pdf-create-empty pdf-from-text /usr/local/bin/
|
cp pdf-* /usr/local/bin/
|
||||||
```
|
```
|
||||||
|
|
||||||
### Related use cases
|
### Related use cases
|
||||||
|
|
||||||
* You can add the date or other pieces of text using the `--text` CLI option or `Signature -> Custom text` menu option.
|
* You can add the date or other pieces of text using the `--text` CLI option or `Signature -> Custom text` menu option.
|
||||||
|
If you want both a date and a signature, you have to invoke `pdf-sign` twice.
|
||||||
* You can convert SVG stamps/marks and add them to your signature directory. Example:
|
* You can convert SVG stamps/marks and add them to your signature directory. Example:
|
||||||
```
|
```
|
||||||
curl -LO https://www.svgrepo.com/download/438371/checkmark-round.svg
|
curl -LO https://www.svgrepo.com/download/438371/checkmark-round.svg
|
||||||
sudo apt-get install librsvg2-bin
|
sudo apt-get install librsvg2-bin
|
||||||
rsvg-convert -f pdf -o ~/.pdf_signatures/check.pdf checkmark-round.svg
|
rsvg-convert -f pdf -o ~/.config/pdf_signatures/check.pdf checkmark-round.svg
|
||||||
```
|
```
|
||||||
|
|
||||||
## Why
|
## Why
|
||||||
|
|
Laden …
Tabelle hinzufügen
In neuem Issue referenzieren