summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/luatex/base/luatex-backend.tex
diff options
context:
space:
mode:
authorLuigi Scarso <luigi.scarso@gmail.com>2020-03-14 15:40:52 +0000
committerLuigi Scarso <luigi.scarso@gmail.com>2020-03-14 15:40:52 +0000
commit184155f5d438f545be4cfdc6303b465af2608afe (patch)
tree33e709c0694f0c37ae4db5de63ec4f046547dfc9 /Master/texmf-dist/doc/luatex/base/luatex-backend.tex
parent55eef33fbf00d3e1f62b1fc15ad28328c9c50e9d (diff)
updated luatex reference manual with luaharfbuzz doc.
git-svn-id: svn://tug.org/texlive/trunk@54290 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/luatex/base/luatex-backend.tex')
-rw-r--r--Master/texmf-dist/doc/luatex/base/luatex-backend.tex19
1 files changed, 10 insertions, 9 deletions
diff --git a/Master/texmf-dist/doc/luatex/base/luatex-backend.tex b/Master/texmf-dist/doc/luatex/base/luatex-backend.tex
index e99a95ed26f..2606ff38475 100644
--- a/Master/texmf-dist/doc/luatex/base/luatex-backend.tex
+++ b/Master/texmf-dist/doc/luatex/base/luatex-backend.tex
@@ -627,7 +627,7 @@ pdfe.unencrypt(<pdfe document>,userpassword,ownerpassword)
\stopsubsection
-\startsubsection[title={\type {getsize}, \type {getversion}, \type {getnofobjects}, \type {getnofpages}}]
+\startsubsection[title={\type {getsize}, \type {getversion}, \type {getnofobjects}, \type {getnofpages}, \type{getmemoryusage}}]
\libindex {getsize}
\libindex {getversion}
@@ -641,7 +641,7 @@ bytes = getsize(<pdfe document>)
major, minor = getversion(<pdfe document>)
n = getnofobjects(<pdfe document>)
n = getnofpages(<pdfe document>)
-bytes, waste = getnofpages(<pdfe document>)
+bytes, waste = getmemoryusage(<pdfe document>)
\stoptyping
\stopsubsection
@@ -677,7 +677,7 @@ A specific page can conveniently be reached with the next command, which
returns a dictionary. The first argument is to be a page dictionary.
\starttyping
-<pdfe dictionary> = pdfe.getpage(<pdfe dictionary>,pagenumber)
+<pdfe dictionary> = pdfe.getpage(<pdfe document>,pagenumber)
\stoptyping
Another convenience command gives you the (bounding) box of a (normally page)
@@ -685,7 +685,7 @@ which can be inheritted from the document itself. An example of a valid box name
is \type {MediaBox}.
\starttyping
-pages = pdfe.getbox(<pdfe document>,boxname)
+pages = pdfe.getbox(<pdfe dictionary>,boxname)
\stoptyping
\stopsubsection
@@ -747,7 +747,7 @@ print(pdfe.open("foo.pdf").Pages[1])
\stopsubsection
-\startsubsection[title={\type {[open|close|readfrom][whole|]stream}}]
+\startsubsection[title={\type {[open|close|readfrom|whole|]stream}}]
\libindex {openstream}
\libindex {closestream}
@@ -797,8 +797,8 @@ type, value, detail = getfromarray(<pdfe array>,index)
\DB type \BC meaning \BC value \BC detail \NC \NR
\NC \type {0} \NC none \NC nil \NC \NC \NR
\NC \type {1} \NC null \NC nil \NC \NC \NR
-\NC \type {2} \NC boolean \NC boolean \NC \NC \NR
-\NC \type {3} \NC boolean \NC integer \NC \NC \NR
+\NC \type {2} \NC boolean \NC 1 or 0 \NC \NC \NR
+\NC \type {3} \NC integer \NC integer \NC \NC \NR
\NC \type {4} \NC number \NC float \NC \NC \NR
\NC \type {5} \NC name \NC string \NC \NC \NR
\NC \type {6} \NC string \NC string \NC hex \NC \NR
@@ -843,10 +843,11 @@ Because you can have unresolved references, a reference object can be resolved
with:
\starttyping
-<pdfe dictionary|array|stream> = getfromreference(<pdfe reference>)
+type, <pdfe dictionary|array|stream>, detail = getfromreference(<pdfe reference>)
\stoptyping
-So, you get back a new \type {pdfe} userdata object that you can query.
+So, as second value you get back a new \type {pdfe} userdata object that you can
+query.
\stopsubsection