aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-05-05Add TODOTeddy Wing
2021-05-04Add `--help` and `--version` command line optionsTeddy Wing
Make `--find` and `--replace` options optional instead of required, otherwise they cause errors when `--help` or `--version` are used independently.
2021-05-04Add sysexits exit codeTeddy Wing
Doesn't capture input or I/O errors. Not bothering to return EX_NOINPUT or EX_IOERR or EX_CANTCREAT because I don't want to bother creating an error enum and variants for each case.
2021-05-04Add context to errorsTeddy Wing
Remove `unwrap`s and add context to errors with 'anyhow'.
2021-05-04Add standard input and output handlingTeddy Wing
Allow the input PDF to be read from standard input, and the output PDF to be written to standard output.
2021-05-04Get variables from command line argumentsTeddy Wing
2021-05-04Begin defining command line optionsTeddy Wing
2021-05-03main: Remove debug print linesTeddy Wing
2021-05-03Rename project to `pdf-form-replace-font`Teddy Wing
Rename to something that's more descriptive. This started out as just a scratch space.
2021-05-02Change version to v0.0.1Teddy Wing
2021-05-02Proof of concept to replace PDF form fields' fontTeddy Wing
PDF form fields are `/DA` fields (PDF Reference page 534, https://www.adobe.com/content/dam/acom/en/devnet/pdf/pdfs/pdf_reference_archives/PDFReference.pdf). Get all `/DA` objects. Their value is a string that specifies the field's appearance properties. One part of the appearance string is the font name (its Postscript name). By replacing the font name with a different one, we can change the field's font.