summaryrefslogtreecommitdiff
path: root/systems/doc
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-10-24 03:02:46 +0000
committerNorbert Preining <norbert@preining.info>2019-10-24 03:02:46 +0000
commit33b877a6413cc7b93c7a2c17e6df36c03f55481d (patch)
treed1006be84566ca91a3dc9fdc5798c20c9fb0c095 /systems/doc
parent43e60b98142683b95336b9086ee52f4daefff93e (diff)
CTAN sync 201910240302
Diffstat (limited to 'systems/doc')
-rw-r--r--systems/doc/luatex/luatex-callbacks.tex27
-rw-r--r--systems/doc/luatex/luatex.pdfbin1562033 -> 1562048 bytes
2 files changed, 13 insertions, 14 deletions
diff --git a/systems/doc/luatex/luatex-callbacks.tex b/systems/doc/luatex/luatex-callbacks.tex
index 9be3e36354..965fba8062 100644
--- a/systems/doc/luatex/luatex-callbacks.tex
+++ b/systems/doc/luatex/luatex-callbacks.tex
@@ -1038,7 +1038,7 @@ end
This callback is called after the \PDF\ page stream has been assembled and before
the page object gets finalized.
-\subsection{\cbk {page_objnum_provider}}
+\subsection{\cbk {page_order_index}}
\topicindex{callbacks+\PDF\ file}
@@ -1046,28 +1046,27 @@ This is one that experts can use to juggle the page tree, a data structure
that determines the order in a \PDF\ file:
\startfunctioncall
-function(objnum)
- return objnum
+function(pagenumber)
+ return pagenumber
end
\stopfunctioncall
-We can for instance swap the first and last page:
+Say that we have 12 pages, then we can do this:
\starttyping
-local n = 0
-callback.register("page_objnum_provider",function(objnum)
- n = n + 1
- if n == 1 then
- return pdf.getpageref(tex.count[0])
- elseif n == tex.count[0] then
- return pdf.getpageref(1)
- else
- return objnum
+callback.register("page_order_index",function(page)
+ if page == 1 then return 12
+ elseif page == 2 then return 11
+ elseif page == 11 then return 2
+ elseif page == 12 then return 1
+ else return page
end
end)
\stoptyping
-When you mess things up \unknown\ don't complain.
+This will swap the first two and last two pages. You need to know the number of
+pages which is a side effect of the implementation. When you mess things up
+\unknown\ don't complain.
\subsection{\cbk {process_pdf_image_content}}
diff --git a/systems/doc/luatex/luatex.pdf b/systems/doc/luatex/luatex.pdf
index 023d11189d..f84677d0c2 100644
--- a/systems/doc/luatex/luatex.pdf
+++ b/systems/doc/luatex/luatex.pdf
Binary files differ