<div dir="ltr">Hello Norbert,<div><br></div><div>I've got the same version (`Version 0.95.0 (TeX Live 2016/Debian)` ; my `texlive-luatex` package is on version 2016.20160819-2). The problem only appears with the `-draftmode` option : without it, as you say, that works.</div><div><br></div><div>Thank you,</div><div><br></div><div>Fr Jacques Peron.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-22 18:49 GMT+02:00 Jacques Peron <span dir="ltr"><<a href="mailto:cataclop@hotmail.com" target="_blank">cataclop@hotmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"></span><div><p style="margin:0px 0px 1.2em!important">Hello,</p>
<p style="margin:0px 0px 1.2em!important">Using <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">lualatex</code> from Debian sid texlive packages, I get a weird error when including a pdf with <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">graphicx</code> :</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">$ lualatex -draftmode test.tex



! error:  (pdf backend): draftmode cannot be changed after data is written to t
he PDF file
!  ==> Fatal error occurred, no output PDF file produced!
</code></pre><p style="margin:0px 0px 1.2em!important">With <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">pdflatex</code>, here is what I get instead :</p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">$ pdflatex -draftmode test.tex



<ND.pdf, id=1, 150.5625pt x 167.62625pt> <use ND.pdf> [1] (./test.aux) )
pdfTeX warning: \pdfdraftmode enabled, not changing output pdf
Transcript written on test.log.
</code></pre><p style="margin:0px 0px 1.2em!important">You’ll find files joined. I think it must be a bug within <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">lualatex</code> ; please tell me if I make a mistake !</p>
<p style="margin:0px 0px 1.2em!important">Fr Jacques Peron.</p>
<div title="MDH:PHNwYW4gc3R5bGU9ImNvbG9yOiByZ2IoMzQsIDM0LCAzNCk7IGZvbnQtZmFtaWx5OiBhcmlhbCxz
YW5zLXNlcmlmOyBmb250LXNpemU6IHNtYWxsOyBmb250LXN0eWxlOiBub3JtYWw7IGZvbnQtdmFy
aWFudDogbm9ybWFsOyBmb250LXdlaWdodDogbm9ybWFsOyBsZXR0ZXItc3BhY2luZzogbm9ybWFs
OyBsaW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OiBzdGFydDsgdGV4dC1p
bmRlbnQ6IDBweDsgdGV4dC10cmFuc2Zvcm06IG5vbmU7IHdoaXRlLXNwYWNlOiBub3JtYWw7IHdv
cmQtc3BhY2luZzogMHB4OyI+PGRpdj5gYGA8L2Rpdj48ZGl2PiQgcGRmbGF0ZXggLWRyYWZ0bW9k
ZSB0ZXN0LnRleDwvZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+4oCmPC9kaXY+PGRpdj48YnI+PC9k
aXY+PGRpdj4mbHQ7TkQucGRmLCBpZD0xLCAxNTAuNTYyNXB0IHggMTY3LjYyNjI1cHQmZ3Q7ICZs
dDt1c2UgTkQucGRmJmd0OyBbMV0gKC4vdGVzdC5hdXgpICk8YnI+cGRmVGVYIHdhcm5pbmc6IFxw
ZGZkcmFmdG1vZGUgZW5hYmxlZCwgbm90IGNoYW5naW5nIG91dHB1dCBwZGY8YnI+VHJhbnNjcmlw
dCB3cml0dGVuIG9uIHRlc3QubG9nLjwvZGl2PjxkaXY+YGBgPC9kaXY+PGRpdj48YnI+PC9kaXY+
PGRpdj5Zb3UnbGwgZmluZCBmaWxlcyBqb2luZWQuIEkgdGhpbmsgaXQgbXVzdCBiZSBhIGJ1ZyB3
aXRoaW4gYGx1YWxhdGV4YCA7IHBsZWFzZSB0ZWxsIG1lIGlmIEkgbWFrZSBhIG1pc3Rha2UgITwv
ZGl2PjxkaXY+PGJyPjwvZGl2PjxkaXY+RnIgSmFjcXVlcyBQZXJvbi48L2Rpdj48L2Rpdj4=" style="min-height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div></div></div><div><div></div></div></div>
</blockquote></div><br></div>