diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-18 17:13:08 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-18 17:13:08 +0100 |
commit | a245f4f38ac1000ee070cc7bc611e862c46df4d2 (patch) | |
tree | cf2c88ed8fe920130e744ce5f13cd0a2e1c18a8f /lualib/lua_content | |
parent | 298432d784d1d2d56c223dd75678fe36fef14550 (diff) | |
download | rspamd-a245f4f38ac1000ee070cc7bc611e862c46df4d2.tar.gz rspamd-a245f4f38ac1000ee070cc7bc611e862c46df4d2.zip |
[Minor] Pdf: Disable fonts processing for now
Diffstat (limited to 'lualib/lua_content')
-rw-r--r-- | lualib/lua_content/pdf.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lualib/lua_content/pdf.lua b/lualib/lua_content/pdf.lua index ed88a24bd..e47c21ef6 100644 --- a/lualib/lua_content/pdf.lua +++ b/lualib/lua_content/pdf.lua @@ -491,6 +491,7 @@ end -- Extracts font data and process /ToUnicode mappings -- NYI in fact as cmap is ridiculously stupid and complicated +--[[ local function process_font(task, pdf, font, fname) local dict = font if font.dict then @@ -507,6 +508,7 @@ local function process_font(task, pdf, font, fname) end end end +--]] -- Forward declaration local process_dict @@ -711,9 +713,11 @@ process_dict = function(task, pdf, obj, dict) obj.resources = resources end - local fonts = obj.resources.Font - if fonts and type(fonts) == 'table' then + +--[[Disabled fonts extraction + local fonts = obj.resources.Font + if fonts and type(fonts) == 'table' then obj.fonts = {} for k,v in pairs(fonts) do obj.fonts[k] = maybe_dereference_object(v, pdf, task) @@ -729,6 +733,7 @@ process_dict = function(task, pdf, obj, dict) end end end +]] lua_util.debugm(N, task, 'found resources for object %s:%s (%s): %s', obj.major, obj.minor, obj.type, obj.resources) |