summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-04-25 20:46:03 +0000
committerKarl Berry <karl@freefriends.org>2016-04-25 20:46:03 +0000
commitcfa0d42c795abf70a671d0a381e4fb45a3dba13d (patch)
treecbae7a39b41eb1daaae2950a2c214c31ab35ad47 /Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo
parent5e37eaa6f3ee9d0cecc7e29e73baf8f5380d6ba4 (diff)
pdftex doc for TL16: updates to manual, more tests, samplepdf(tex) at top level, pdfkeys and thanh/ext removed
git-svn-id: svn://tug.org/texlive/trunk@40740 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo')
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/Makefile40
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/abc.tex10
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdfinfoomitdate.tex4
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdfsuppressptexinfo.tex18
-rw-r--r--Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdftrailer.tex6
5 files changed, 78 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/Makefile b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/Makefile
new file mode 100644
index 00000000000..6e176ae9742
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/Makefile
@@ -0,0 +1,40 @@
+# $Id: Makefile 740 2016-04-23 15:08:37Z karl $
+# Public domain.
+
+include ../Common.mak
+
+all: abc-diff testptex-diff testdate-diff testtrailer-diff
+
+abc abc.pdf:
+ $(env) $(prog) '\pdfsuppressptexinfo=1\input' abc.tex </dev/null
+
+abc-orig.pdf:
+ $(env) $(prog) abc.tex </dev/null && mv abc.pdf $@
+abc-diff: abc-orig.pdf abc.pdf
+ -$(diff) $^ # /PTEX.Fullbanner should be gone
+
+testptex = test-pdfsuppressptexinfo
+$(testptex)-orig.pdf: $(testptex).tex abc.pdf
+ $(env) $(prog) $(testptex).tex </dev/null \
+ && mv $(testptex).pdf $(testptex)-orig.pdf
+$(testptex).pdf: $(testptex).tex abc.pdf Makefile
+ $(env) $(prog) '\pdfsuppressptexinfo=-1\input' $(testptex).tex \
+ </dev/null
+testptex-diff: $(testptex)-orig.pdf $(testptex).pdf
+ -$(diff) $^ # all /PTEX.* should be gone
+
+# these are also tested in ../03-deterministic-output, but can try them here.
+testdate = test-pdfinfoomitdate
+$(testdate).pdf: $(testdate).tex abc.pdf
+ $(env) $(prog) $(testdate).tex </dev/null
+testdate-diff: $(testptex)-orig.pdf $(testdate).pdf
+ -$(diff) $^ # /CreationDate, /ModDate should be gone
+
+testtrailer = test-pdftrailer
+$(testtrailer).pdf: $(testtrailer).tex abc.pdf
+ $(env) $(prog) $(testtrailer).tex </dev/null
+testtrailer-diff: $(testptex)-orig.pdf $(testtrailer).pdf
+ -$(diff) $^ # new /mytrlrkey, dates+id should be different
+
+clean:
+ rm -f *.log *.pdf *.fmt *.aux
diff --git a/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/abc.tex b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/abc.tex
new file mode 100644
index 00000000000..045ccbcd2f8
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/abc.tex
@@ -0,0 +1,10 @@
+% $Id: abc.tex 737 2016-03-21 22:54:16Z karl $
+% Public domain.
+\input plain.tex
+\input pdftexconfig.tex
+\input pdftexmagfix.tex
+\pdfcompresslevel=0
+\pdfobjcompresslevel=0
+
+abc
+\bye
diff --git a/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdfinfoomitdate.tex b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdfinfoomitdate.tex
new file mode 100644
index 00000000000..dfd30ceb996
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdfinfoomitdate.tex
@@ -0,0 +1,4 @@
+% $Id: test-pdfinfoomitdate.tex 737 2016-03-21 22:54:16Z karl $
+% Public domain.
+\pdfinfoomitdate = 1
+\input test-pdfsuppressptexinfo
diff --git a/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdfsuppressptexinfo.tex b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdfsuppressptexinfo.tex
new file mode 100644
index 00000000000..fac5e30b807
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdfsuppressptexinfo.tex
@@ -0,0 +1,18 @@
+% $Id: test-pdfsuppressptexinfo.tex 740 2016-04-23 15:08:37Z karl $
+% Public domain.
+\input plain.tex
+\input pdftexconfig.tex
+\input pdftexmagfix.tex
+\pdfcompresslevel=0
+\pdfobjcompresslevel=0
+
+% \pdfsuppressptexinfo=-1
+% \pdfsuppressptexinfo=15
+% \pdfsuppressptexinfo=8
+% \pdfsuppressptexinfo=4
+% \pdfsuppressptexinfo=2
+% \pdfsuppressptexinfo=1
+
+\pdfximage{abc.pdf}
+\hbox{\pdfrefximage\pdflastximage}
+\bye
diff --git a/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdftrailer.tex b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdftrailer.tex
new file mode 100644
index 00000000000..119292229aa
--- /dev/null
+++ b/Master/texmf-dist/doc/pdftex/tests/04-pdfsuppressptexinfo/test-pdftrailer.tex
@@ -0,0 +1,6 @@
+% $Id: test-pdftrailer.tex 737 2016-03-21 22:54:16Z karl $
+% Public domain.
+\pdfoutput=1 \catcode`\{=1 \catcode`\}=2
+\pdftrailer {/mytrlrkey /mytrlrval}
+\pdftrailerid {} % seed for trailer id
+\input test-pdfsuppressptexinfo