aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorTeddy Wing2021-04-17 20:19:59 +0200
committerTeddy Wing2021-04-17 20:31:26 +0200
commit16fbda5831d81c8fc430a41bbc75a9f80d54a701 (patch)
tree228b62062d3269e1eb2ee4da7337bdaddaffe874 /example
parent30317894c228ce960e8d35c5c11a035a08098ba4 (diff)
downloadformurapid-16fbda5831d81c8fc430a41bbc75a9f80d54a701.tar.bz2
Add an example
Try to show command usage with a PDF form and the generated files.
Diffstat (limited to 'example')
-rwxr-xr-xexample/01-generate.sh5
-rwxr-xr-xexample/02-fill-in.sh5
-rw-r--r--example/f1040-filled.pdfbin0 -> 262652 bytes
-rw-r--r--example/f1040-ids.pdfbin0 -> 263382 bytes
-rw-r--r--example/f1040.pdfbin0 -> 150184 bytes
-rw-r--r--example/f1040.toml7
6 files changed, 17 insertions, 0 deletions
diff --git a/example/01-generate.sh b/example/01-generate.sh
new file mode 100755
index 0000000..5b053cf
--- /dev/null
+++ b/example/01-generate.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Generates 'f1040-ids.pdf' and 'f1040.toml'.
+
+formurapid --generate ./f1040.pdf
diff --git a/example/02-fill-in.sh b/example/02-fill-in.sh
new file mode 100755
index 0000000..17518e2
--- /dev/null
+++ b/example/02-fill-in.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# Generates 'f1040-filled.pdf' based on 'f1040.toml'.
+
+formurapid --fill ./f1040.pdf
diff --git a/example/f1040-filled.pdf b/example/f1040-filled.pdf
new file mode 100644
index 0000000..d1ef499
--- /dev/null
+++ b/example/f1040-filled.pdf
Binary files differ
diff --git a/example/f1040-ids.pdf b/example/f1040-ids.pdf
new file mode 100644
index 0000000..1bd5c63
--- /dev/null
+++ b/example/f1040-ids.pdf
Binary files differ
diff --git a/example/f1040.pdf b/example/f1040.pdf
new file mode 100644
index 0000000..c089e8a
--- /dev/null
+++ b/example/f1040.pdf
Binary files differ
diff --git a/example/f1040.toml b/example/f1040.toml
new file mode 100644
index 0000000..4db7b65
--- /dev/null
+++ b/example/f1040.toml
@@ -0,0 +1,7 @@
+[[fields]]
+id = 0
+value = "Krusty"
+
+[[fields]]
+id = 1
+value = "the Clown"