#1122852 ITP: swan -- The PDF Swiss-Army CLI

#1122852#5
Date:
2025-12-13 09:11:08 UTC
From:
To:
* Package name    : swan
  Version         : 1.0.0
  Upstream Contact: "Uddhav Phatak" <uddhav0203@gmail.com>
* URL             : https://forge.hekkelman.net/maarten/mxml
* License         : Apache 2.0
  Programming Lang: C
  Description     : The PDF Swiss-Army CLI
Swan is a lightweight, fast, and dependency-minimal command-line toolkit
for PDF manipulation, built entirely in C on top of PDFio.
It provides a set of powerful subcommands to merge, split, reorder, inspect,
and generate PDFs — all under a permissive license.

#1122852#10
Date:
2025-12-15 07:40:01 UTC
From:
To:
Hi,

This URL seems unrelated to swan. Can you doublecheck it?

Andrius

#1122852#15
Date:
2025-12-19 14:26:25 UTC
From:
To:
Uddhav <uddhav0203@gmail.com> writes:

This URL does not point at the repo that you seem to be planning on
packaging, which I'd guess would be:

https://github.com/uddhavphatak/swan/commits/main/

The name seems like a mistake to me, because it doesn't tell one
anything about the software at all.

I'd assume that many people's first thought when seeing 'swan' is that
it's got something to do with IPv6 encryption (e.g. strongswan).

Running `apt search swiss.army` gives 14 packages that mention Swiss
army in their description (I doubt that's a complete list) with the one
that's closest to using that as its name being 'swaks', which at least
devotes one letter of it's name (the second 's') to standing for 'SMTP',
so it's making a tiny effort to say what it is in its name -- it also
has the advantage of being usefully searchable, which 'swan' is not.

This software is _very_ young for packaging as a Debian package. The
repo contains 3 commits (from October) with only one of those touching
the code (the other 2 being license related).

Does this do anything that pdftk does not?

Cheers, Phil.

#1122852#20
Date:
2026-01-01 12:38:38 UTC
From:
To:
Well, one difference is that swan seems to have a non-copyleft license
while pdftk-java is under the copyleft GNU GPL. Given our mission, all
other things being equal, Debian generally prefers a copyleft license.