In recent versions of LuaTeX, the PDF outline hierarchy may be set up from the TeX side with \pdfextension outline; for example:

\pdfextension outline goto page \the\c@page {} count 1 {Chapter 1}
\pdfextension outline attr{/F 1} goto name{label} {Section 1.1}

I would like to do this from Lua. Something like:

pdf.setoutlines( whatever )

… but there isn't such interface.

I have thought about going with raw PDF objects by using pdf.immediateobj, but I don't know to do it. If it's possible to accomplish this that way, could you please show an example hierarchy?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.