From d206580edba34efdd05cfd11d1aa830122479f93 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 2 May 2021 19:27:54 +0200 Subject: Proof of concept to replace PDF form fields' font 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. --- Cargo.toml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Cargo.toml (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..990d62e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "pdf-font" +version = "0.1.0" +edition = "2018" + +[dependencies] +lopdf = "0.26.0" -- cgit v1.2.3