summaryrefslogtreecommitdiff
path: root/systems/doc/luatex/luatex-backend.tex
diff options
context:
space:
mode:
Diffstat (limited to 'systems/doc/luatex/luatex-backend.tex')
-rw-r--r--systems/doc/luatex/luatex-backend.tex19
1 files changed, 10 insertions, 9 deletions
diff --git a/systems/doc/luatex/luatex-backend.tex b/systems/doc/luatex/luatex-backend.tex
index e99a95ed26..2606ff3847 100644
--- a/systems/doc/luatex/luatex-backend.tex
+++ b/systems/doc/luatex/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