add needed ffi module when saving annotations

pull/1053/head
Hans-Werner Hilse 10 years ago
parent 3484920718
commit 0a74dc6072

@ -119,6 +119,9 @@ end
function PdfDocument:saveHighlight(pageno, item)
self.is_edited = true
local ffi = require("ffi")
-- will also need mupdf_h.lua to be evaluated once
-- but this is guaranteed at this point
local n = #item.pboxes
local quadpoints = ffi.new("fz_point[?]", 4*n)
for i=1, n do

Loading…
Cancel
Save