[luatex] LuaTeX warning: Misplaced \pdfrestore by (983040sp, 0sp)

Patrick Gundlach patrick at gundla.ch
Tue Apr 23 14:21:22 CEST 2013


Hi,

when running the following code, I have a problem that subsequent boxes are misplaced. A warning is issued:

LuaTeX warning: Misplaced \pdfrestore by (983040sp, 0sp)

What am I doing wrong?

Patrick



\documentclass{article}

\begin{document}

\directlua{
  local save,restore,set_matrix
  save = node.new("whatsit","pdf_save")
  restore = node.new("whatsit","pdf_restore")
  set_matrix = node.new("whatsit", "pdf_setmatrix")
  set_matrix.data = "5 0 0 5 "

  local rule = node.new("rule")
  rule.width =  15*2^16
  rule.height = 15*2^16
  local hbox = node.hpack(rule)
  hbox.head = node.insert_before(hbox.head,rule,save)
  node.insert_after(hbox.head,save,set_matrix)
  node.insert_after(hbox.head,rule,restore)
  node.write(hbox)
}

\end{document}





More information about the luatex mailing list