blob: 441a9b33f20bfc7088125c1f49c823b7467fa5cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
pdf-form-replace-font2
======================
Replace a given font in a PDF form’s fields with a different one.
This is a rewrite of [pdf-form-replace-font] using the [iText7] PDF library. The
result is more robust than the original PDF-Form-Replace-Font.
## Usage
The following command replaces Helvetica with Courier New (font names are
specified by their PostScript names):
$ pdf-form-replace-font2 \
--find HelveticaLTStd-Bold \
--replace CourierNewPSMT \
--output f1040-courier.pdf \
f1040.pdf
## Install
Mac OS X users can install with MacPorts, after [adding a custom repository
source][teddywing ports repository]:
$ sudo port install pdf-form-replace-font2
[teddywing ports repository]: https://github.com/teddywing/macports-ports#adding-this-repository-source
## License
Copyright © 2023 Teddy Wing. Licensed under the GNU GPLv3+ (see the included
COPYING file).
[pdf-form-replace-font]: https://github.com/teddywing/pdf-form-replace-font/
[iText7]: https://itextpdf.com/
|