9 lines
236 B
Lua
9 lines
236 B
Lua
return {
|
|
{
|
|
Meta = function(meta)
|
|
local rawText = pandoc.pipe("pdftotext", {"output.pdf", "-"}, "")
|
|
meta["wordcount"] = pandoc.pipe("wc", {"-w"}, rawText)
|
|
return meta
|
|
end,
|
|
},
|
|
}
|