summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/luatexdir/tests
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/tests')
-rw-r--r--Build/source/texk/web2c/luatexdir/tests/luaimage.tex36
1 files changed, 36 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/tests/luaimage.tex b/Build/source/texk/web2c/luatexdir/tests/luaimage.tex
new file mode 100644
index 00000000000..f6cbacd3b05
--- /dev/null
+++ b/Build/source/texk/web2c/luatexdir/tests/luaimage.tex
@@ -0,0 +1,36 @@
+% Copyright (C) 2013 Peter Breitenlohner <tex-live@tug.org>
+% You may freely use, modify and/or distribute this file.
+%
+\ifx\fmtname\undefined
+ \input basic
+ \directlua{tex.enableprimitives('',tex.extraprimitives())}
+ \def\fmtname{basic}
+ \expandafter\dump
+\fi
+%==================
+\outputmode=1
+\edef\pdfcompresslevel {\pdfvariable compresslevel}
+\edef\pdfminorversion{\pdfvariable minorversion}
+
+\let\pdfximage\saveimageresource
+\let\pdfrefximage\useimageresource
+\let\pdflastximage\lastsavedimageresourceindex
+
+\pdfminorversion=7
+\pdfcompresslevel=0
+
+\topskip0pt
+
+\pdfximage width \hsize height \vsize {1-4.jpg}
+\hbox{\pdfrefximage\pdflastximage}
+\eject
+
+\pdfximage width \hsize height \vsize {B.pdf}
+\hbox{\pdfrefximage\pdflastximage}
+\eject
+
+\pdfximage width \hsize height \vsize {lily-ledger-broken.png}
+\hbox{\pdfrefximage\pdflastximage}
+\eject
+
+\bye