aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_content/pdf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lualib/lua_content/pdf.lua')
-rw-r--r--lualib/lua_content/pdf.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua
index 9ff3d0260..3ff9f0f64 100644
--- a/lualib/lua_content/pdf.lua
+++ b/lualib/lua_content/pdf.lua
@@ -71,11 +71,18 @@ end
-- Call immediately on require
compile_tries()
+local function extract_text_data(specific)
+ return nil -- NYI
+end
+
local function process_pdf(input, _, task)
local matches = pdf_trie:match(input)
- local pdf_output = {}
if matches then
+ local pdf_output = {
+ tag = 'pdf',
+ extract_text = extract_text_data,
+ }
local grouped_processors = {}
for npat,matched_positions in pairs(matches) do
local index = pdf_indexes[npat]