]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
bannertopdf() templates: Adeed instructions to PDF templates
authorTill Kamppeter <till.kamppeter@gmail.com>
Fri, 29 Oct 2021 09:04:22 +0000 (11:04 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Fri, 29 Oct 2021 09:04:22 +0000 (11:04 +0200)
With the change on the bannertopdf() filter function of the previous
commit the template PDF files can get directly fed into bannertopdf()
and the instructions for adding printer- and job-specific text can be
embedded in the templates.

This commit adds the appropriate instructions to each template file,
to not break PDF integrity to the end. So one can even modify the
instructions without breaking the template itself.

If feeding banner instruction files into bannertopdf() as before, the
embedded instructions get ignored.

Also added files with only the instructions, the data/*-append.txt
files. They are not actually used but only FYI.

14 files changed:
Makefile.am
data/banner-instr-append.txt [new file with mode: 0644]
data/classified.pdf
data/confidential.pdf
data/default-testpage.pdf
data/default.pdf
data/form-instr-append.txt [new file with mode: 0644]
data/form_english.pdf
data/form_russian.pdf
data/secret.pdf
data/standard.pdf
data/testprint-instr-append.txt [new file with mode: 0644]
data/topsecret.pdf
data/unclassified.pdf

index 504441c1e3a447713a95a19df8a4fcc44d29ce64..6e593cde64ffb5104329109da1b81624fa23ded0 100644 (file)
@@ -39,6 +39,9 @@ EXTRA_DIST += \
        data/standard.ps \
        data/topsecret.ps \
        data/unclassified.ps \
+       data/banner-instr-append.txt \
+       data/form-instr-append.txt \
+       data/testprint-instr-append.txt \
        drv/custom-media-lines
 
 # =========
diff --git a/data/banner-instr-append.txt b/data/banner-instr-append.txt
new file mode 100644 (file)
index 0000000..bf33219
--- /dev/null
@@ -0,0 +1,2 @@
+%%#PDF-BANNER
+%%Show printer-name printer-info printer-location printer-make-and-model job-id time-at-creation time-at-processing job-originating-user-name job-name job-originating-host-name job-billing job-uuid
index ac6a2218db59a86ff6964663dc1e84e71a232cac..cca46a0d9d633d0aa540d23be6d4f4565bb9b935 100644 (file)
Binary files a/data/classified.pdf and b/data/classified.pdf differ
index 1daf52b1efe2a9839b7b9b00f185e818d400bf1d..d6d1e9df0004a4a576539947579fea5caab088c0 100644 (file)
Binary files a/data/confidential.pdf and b/data/confidential.pdf differ
index c357fccaf331b72d8159b659b8cbd62e4a5e4d63..7f8d7fb22e47510d43ae06cdb5a1810bf51de4c7 100644 (file)
Binary files a/data/default-testpage.pdf and b/data/default-testpage.pdf differ
index 3f6865e345fc03d0499c4e28d842feb2c78d8322..d07f089bfd04ba6bae3c44ee21029b1d728274e2 100644 (file)
Binary files a/data/default.pdf and b/data/default.pdf differ
diff --git a/data/form-instr-append.txt b/data/form-instr-append.txt
new file mode 100644 (file)
index 0000000..79fe478
--- /dev/null
@@ -0,0 +1,3 @@
+%%#PDF-BANNER
+%%Font UseDefault
+%%Font-size 11
index 6d278e89b9409fd9e6bd36bd84c02976fc4a91eb..a92730b70fe12720e393d45aed58b2ec2a781d54 100644 (file)
Binary files a/data/form_english.pdf and b/data/form_english.pdf differ
index 8cebbf22564e4bfd30340a80b6f2de6f2f5b8c87..babf0e9a0b468fafe59d6f8bf678b733229f09f4 100644 (file)
Binary files a/data/form_russian.pdf and b/data/form_russian.pdf differ
index 988fd8f9bf10b1a7b31e331c4efa058e4b4a9d9d..2ffe0ae874696ecb43eaf0a0cec275fe27f74d06 100644 (file)
Binary files a/data/secret.pdf and b/data/secret.pdf differ
index dc422bc0b0be3b4647c5077f5f6ef736140b1c14..5bb1e060412acd1b2cbac2bc58df8f5f054bb37e 100644 (file)
Binary files a/data/standard.pdf and b/data/standard.pdf differ
diff --git a/data/testprint-instr-append.txt b/data/testprint-instr-append.txt
new file mode 100644 (file)
index 0000000..6aba4bd
--- /dev/null
@@ -0,0 +1,2 @@
+%%#PDF-BANNER
+%%Show printer-name printer-info printer-location printer-make-and-model printer-driver-name printer-driver-version paper-size imageable-area job-id options time-at-creation time-at-processing job-originating-user-name job-name job-originating-host-name job-billing job-uuid
index d56f4e463ef5282d0556a29d2701d449c40ec3a7..a15628e2d15a84930a2215ac43d8e3f7d7cf19f0 100644 (file)
Binary files a/data/topsecret.pdf and b/data/topsecret.pdf differ
index 027c0fdefb4f92eae081935f02f117bbcbadb979..520dea388a0b041b6315076d71d9acf9febd66ae 100644 (file)
Binary files a/data/unclassified.pdf and b/data/unclassified.pdf differ