|
|
@ -60,24 +60,26 @@ Document = {
|
|
|
|
number_of_pages = 0,
|
|
|
|
number_of_pages = 0,
|
|
|
|
-- if not pageable, length of the document in pixels
|
|
|
|
-- if not pageable, length of the document in pixels
|
|
|
|
doc_height = 0,
|
|
|
|
doc_height = 0,
|
|
|
|
|
|
|
|
|
|
|
|
-- other metadata
|
|
|
|
-- other metadata
|
|
|
|
title = "",
|
|
|
|
title = "",
|
|
|
|
author = "",
|
|
|
|
author = "",
|
|
|
|
date = ""
|
|
|
|
date = ""
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
GAMMA_NO_GAMMA = 1.0,
|
|
|
|
GAMMA_NO_GAMMA = 1.0,
|
|
|
|
|
|
|
|
|
|
|
|
-- override bbox from orignal page's getUsedBBox
|
|
|
|
-- override bbox from orignal page's getUsedBBox
|
|
|
|
bbox = {},
|
|
|
|
bbox = {},
|
|
|
|
|
|
|
|
|
|
|
|
-- flag to show whether the document was opened successfully
|
|
|
|
-- flag to show whether the document was opened successfully
|
|
|
|
is_open = false,
|
|
|
|
is_open = false,
|
|
|
|
error_message = nil,
|
|
|
|
error_message = nil,
|
|
|
|
|
|
|
|
|
|
|
|
-- flag to show that the document needs to be unlocked by a password
|
|
|
|
-- flag to show that the document needs to be unlocked by a password
|
|
|
|
is_locked = false,
|
|
|
|
is_locked = false,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
configurable = Configurable,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function Document:new(o)
|
|
|
|
function Document:new(o)
|
|
|
|