diff options
author | Luigi Scarso <luigi.scarso@gmail.com> | 2021-02-15 00:16:48 +0000 |
---|---|---|
committer | Luigi Scarso <luigi.scarso@gmail.com> | 2021-02-15 00:16:48 +0000 |
commit | 1426e46e70e41a176d37049fc4e0b9bf3dde108a (patch) | |
tree | ccf05b9ef37ae9aad9e9b1b4421f5047f5b0bf06 /Master/texmf-dist/doc/luatex/base/luatex-backend.tex | |
parent | d9a6c07a4c5694449647b57ae3695acb37658fc7 (diff) |
updated luatex manual
git-svn-id: svn://tug.org/texlive/trunk@57746 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.tex | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/Master/texmf-dist/doc/luatex/base/luatex-backend.tex b/Master/texmf-dist/doc/luatex/base/luatex-backend.tex index 2606ff38475..cfadd46f25c 100644 --- a/Master/texmf-dist/doc/luatex/base/luatex-backend.tex +++ b/Master/texmf-dist/doc/luatex/base/luatex-backend.tex @@ -681,7 +681,7 @@ returns a dictionary. The first argument is to be a page dictionary. \stoptyping Another convenience command gives you the (bounding) box of a (normally page) -which can be inheritted from the document itself. An example of a valid box name +which can be inherited from the document itself. An example of a valid box name is \type {MediaBox}. \starttyping @@ -690,13 +690,14 @@ pages = pdfe.getbox(<pdfe dictionary>,boxname) \stopsubsection -\startsubsection[title={\type {get[string|integer|number|boolean|name]}}] +\startsubsection[title={\type {get[string|integer|number|boolean|name]}, \type{type}}] \libindex {getstring} \libindex {getinteger} \libindex {getnumber} \libindex {getboolean} \libindex {getname} +\libindex {type} Common values in dictionaries and arrays are strings, integers, floats, booleans and names (which are also strings) and these are also normal \LUA\ objects: @@ -707,8 +708,23 @@ i = getinteger(<pdfe array|dictionary>,index|key) n = getnumber (<pdfe array|dictionary>,index|key) b = getboolean(<pdfe array|dictionary>,index|key) n = getname (<pdfe array|dictionary>,index|key) +s = type (<pdfe array|dictionary|document|reference|stream) \stoptyping +The \type {type} returns a string describing the type of the object, +i.e. "pdfe.array", "pdfe.dictionary", "pdfe", +"pdfe.reference", "pdfe.stream". + +The \type {getstring} function has two extra variants: + +\starttyping +s, h = getstring (<pdfe array|dictionary>,index|key,false) +s = getstring (<pdfe array|dictionary>,index|key,true) +\stoptyping + +The first call returns the original string plus a boolean indicating if the +string is hex encoded. The second call returns the unencoded string. + \stopsubsection \startsubsection[title={\type {get[from][dictionary|array|stream]}}] |