Přemysl Eric Janouch f4b08fb951
All checks were successful
Alpine 3.20 Success
Arch Linux AUR Success
lpg: improve Picture sizing, clean up
Restraining a Picture in one dimension with a Frame should make it
report the right overall dimensions (keeping its aspect ratio).

Also applying the F.9 C++ Core Guideline.
2025-01-12 10:11:33 +01:00
2025-01-12 10:11:33 +01:00
2021-11-06 12:28:25 +01:00
2023-06-28 22:35:49 +02:00
2023-06-28 22:35:49 +02:00
2025-01-11 15:25:13 +01:00
2025-01-11 15:25:13 +01:00
2020-09-06 05:16:40 +02:00
2022-09-25 18:28:19 +02:00
2021-12-08 20:39:02 +01:00
2025-01-11 15:25:13 +01:00

pdf-simple-sign

pdf-simple-sign is a simple PDF signer intended for documents produced by the Cairo library (≤ 1.17.4 or using PDF 1.4), GNU troff, ImageMagick, or similar.

I dont aim to extend the functionality any further. The project is fairly self-contained and it should be easy to grasp and change to suit to your needs.

Packages

Regular releases are sporadic. git master should be stable enough. You can get a package with the latest development version using Arch Linuxs AUR, or as a Nix derivation.

Documentation

See the man page for information about usage. The rest of this README will concern itself with externalities.

PkgGoDev

Building

Build dependencies: Meson, Asciidoctor, a C++11 compiler, pkg-config
Runtime dependencies: libcrypto (OpenSSL 1.1 API)

$ git clone https://git.janouch.name/p/pdf-simple-sign.git
$ cd pdf-simple-sign
$ meson builddir
$ cd builddir
$ ninja

Go

In addition to the C++ version, also included is a native Go port, which has enhanced PDF 1.5 support:

$ go install janouch.name/pdf-simple-sign/cmd/pdf-simple-sign@master

and a crude external VFS for Midnight Commander, that may be used to extract all streams from a given PDF file:

$ GOBIN=$HOME/.local/share/mc/extfs.d \
  go install janouch.name/pdf-simple-sign/cmd/extfs-pdf@master

To enable the VFS, edit your ~/.config/mc/mc.ext.ini to contain:

[pdf]
Type=^PDF
Open=%cd %p/extfs-pdf://

Lua PDF generator

Build dependencies: Meson, a C++17 compiler, pkg-config
Runtime dependencies: C++ Lua >= 5.3 (custom Meson wrap fallback), cairo >= 1.15.4, pangocairo, libqrencode

This is a parasitic subproject located in the lpg subdirectory. It will generate its own documentation.

Contributing and Support

Use https://git.janouch.name/p/pdf-simple-sign to report bugs, request features, or submit pull requests. git send-email is tolerated. If you want to discuss the project, feel free to join me at ircs://irc.janouch.name, channel #dev.

Bitcoin donations are accepted at: 12r5uEWEgcHC46xd64tt3hHt9EUvYYDHe9

License

This software is released under the terms of the 0BSD license, the text of which is included within the package along with the list of authors.

Description
Simple PDF signer (C++, Go), plus Lua-based PDF generator
Readme 392 KiB
2020-09-06 05:18:03 +02:00
Languages
C++ 51.4%
Go 37.6%
Lua 6.5%
Meson 2.3%
Shell 2.2%