aboutsummaryrefslogtreecommitdiffstats
path: root/Cargo.toml
diff options
context:
space:
mode:
authorTeddy Wing2021-05-02 19:27:54 +0200
committerTeddy Wing2021-05-02 19:27:54 +0200
commitd206580edba34efdd05cfd11d1aa830122479f93 (patch)
tree66365d0d1946c875214de364c56f2eb21ced9dbf /Cargo.toml
downloadpdf-form-replace-font-d206580edba34efdd05cfd11d1aa830122479f93.tar.bz2
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.
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml7
1 files changed, 7 insertions, 0 deletions
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"