aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lualib/lua_content/pdf.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua
index 3ff9f0f64..e8d4c7bab 100644
--- a/lualib/lua_content/pdf.lua
+++ b/lualib/lua_content/pdf.lua
@@ -29,6 +29,12 @@ local pdf_patterns = {
patterns = {
[[\ntrailer\r?\n]]
}
+ },
+ javascript = {
+ patterns = {
+ [[\s/JS]],
+ [[\s/JavaScript]],
+ }
}
}
@@ -128,6 +134,11 @@ processors.trailer = function(input, task, positions, output)
end
end
+processors.javascript = function(_, task, _, output)
+ lua_util.debugm(N, task, "pdf: found javascript tag")
+ output.javascript = true
+end
+
exports.process = process_pdf
return exports \ No newline at end of file