Browse Source

[Minor] Pdf: Disable fonts processing for now

tags/2.6
Vsevolod Stakhov 3 years ago
parent
commit
a245f4f38a
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      lualib/lua_content/pdf.lua

+ 7
- 2
lualib/lua_content/pdf.lua View File



-- Extracts font data and process /ToUnicode mappings -- Extracts font data and process /ToUnicode mappings
-- NYI in fact as cmap is ridiculously stupid and complicated -- NYI in fact as cmap is ridiculously stupid and complicated
--[[
local function process_font(task, pdf, font, fname) local function process_font(task, pdf, font, fname)
local dict = font local dict = font
if font.dict then if font.dict then
end end
end end
end end
--]]


-- Forward declaration -- Forward declaration
local process_dict local process_dict
obj.resources = resources obj.resources = resources
end 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 = {} obj.fonts = {}
for k,v in pairs(fonts) do for k,v in pairs(fonts) do
obj.fonts[k] = maybe_dereference_object(v, pdf, task) obj.fonts[k] = maybe_dereference_object(v, pdf, task)
end end
end end
end end
]]


lua_util.debugm(N, task, 'found resources for object %s:%s (%s): %s', lua_util.debugm(N, task, 'found resources for object %s:%s (%s): %s',
obj.major, obj.minor, obj.type, obj.resources) obj.major, obj.minor, obj.type, obj.resources)

Loading…
Cancel
Save