add page margin options in CREOptions

This commit is contained in:
chrox
2013-06-28 17:12:04 +08:00
parent 67816852ac
commit 94526fa26d
5 changed files with 52 additions and 7 deletions

View File

@@ -223,6 +223,10 @@ function CreDocument:setEmbeddedStyleSheet(toggle)
self._document:setEmbeddedStyleSheet(toggle)
end
function CreDocument:setPageMargins(left, top, right, bottom)
self._document:setPageMargins(left, top, right, bottom)
end
DocumentRegistry:addProvider("txt", "application/txt", CreDocument)
DocumentRegistry:addProvider("epub", "application/epub", CreDocument)
DocumentRegistry:addProvider("html", "application/html", CreDocument)