diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-07-30 11:35:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-07-30 11:35:00 +0200 |
commit | d879fd040aa85b55875d8aed16394351518dde21 (patch) | |
tree | 09d8d98b17282cb23362b8c94fe124b48afe89b9 /tex/context/base/lpdf-fld.lua | |
parent | 84903d24d6d930438bb3cc4322c4b14271b713aa (diff) | |
download | context-d879fd040aa85b55875d8aed16394351518dde21.tar.gz |
stable 2010.07.30 11:35
Diffstat (limited to 'tex/context/base/lpdf-fld.lua')
-rw-r--r-- | tex/context/base/lpdf-fld.lua | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/tex/context/base/lpdf-fld.lua b/tex/context/base/lpdf-fld.lua index 893962b0e..455ddcf5f 100644 --- a/tex/context/base/lpdf-fld.lua +++ b/tex/context/base/lpdf-fld.lua @@ -27,17 +27,18 @@ local registrations = backends.pdf.registrations local registeredsymbol = codeinjections.registeredsymbol -local pdfstream = lpdf.stream -local pdfdictionary = lpdf.dictionary -local pdfarray = lpdf.array -local pdfreference = lpdf.reference -local pdfunicode = lpdf.unicode -local pdfstring = lpdf.string -local pdfconstant = lpdf.constant -local pdftoeight = lpdf.toeight -local pdfflushobject = lpdf.flushobject -local pdfreserveobject = lpdf.reserveobject -local pdfannotation = nodes.pdfannotation +local pdfstream = lpdf.stream +local pdfdictionary = lpdf.dictionary +local pdfarray = lpdf.array +local pdfreference = lpdf.reference +local pdfunicode = lpdf.unicode +local pdfstring = lpdf.string +local pdfconstant = lpdf.constant +local pdftoeight = lpdf.toeight +local pdfflushobject = lpdf.flushobject +local pdfreserveobject = lpdf.reserveobject + +local pdfannotation_node = nodes.pdfannotation local submitoutputformat = 0 -- 0=unknown 1=HTML 2=FDF 3=XML => not yet used, needs to be checked @@ -119,7 +120,7 @@ end local function checked(what) if what and what ~= "" then local set, bug = jobreferences.identify("",what) - return not bug and #set > 0 and lpdf.pdfaction(set) + return not bug and #set > 0 and lpdf.action(set) end end @@ -586,7 +587,7 @@ local function finishfields() end end -lpdf.registerdocumentfinalizer(finishfields) +lpdf.registerdocumentfinalizer(finishfields,"form fields") local pdf_widget = pdfconstant("Widget") local pdf_tx = pdfconstant("Tx") @@ -634,7 +635,7 @@ end local function save_kid(field,specification,d) local kn = pdfreserveobject() field.kids[#field.kids+1] = pdfreference(kn) - node.write(pdfannotation(specification.width,specification.height,0,d(),kn)) + node.write(pdfannotation_node(specification.width,specification.height,0,d(),kn)) end function methods.line(name,specification,variant,extras) |