Fix - A4 in PDF

This commit is contained in:
Mauricio Baeza 2017-12-17 22:03:19 -06:00
parent 677572c0d3
commit 57fad9ff09
1 changed files with 2 additions and 0 deletions

View File

@ -27,6 +27,7 @@ try:
import uno
from com.sun.star.beans import PropertyValue
from com.sun.star.awt import Size
from com.sun.star.view.PaperFormat import LETTER
APP_LIBO = True
except:
APP_LIBO = False
@ -844,6 +845,7 @@ class LIBO(object):
if self._template is None:
return b''
self._template.setPrinter(self._set_properties({'PaperFormat': LETTER}))
self._render(data)
path = '{}.ods'.format(tempfile.mkstemp()[1])