forked from elmau/empresa-libre
Fix - A4 in PDF
This commit is contained in:
parent
677572c0d3
commit
57fad9ff09
|
@ -27,6 +27,7 @@ try:
|
||||||
import uno
|
import uno
|
||||||
from com.sun.star.beans import PropertyValue
|
from com.sun.star.beans import PropertyValue
|
||||||
from com.sun.star.awt import Size
|
from com.sun.star.awt import Size
|
||||||
|
from com.sun.star.view.PaperFormat import LETTER
|
||||||
APP_LIBO = True
|
APP_LIBO = True
|
||||||
except:
|
except:
|
||||||
APP_LIBO = False
|
APP_LIBO = False
|
||||||
|
@ -844,6 +845,7 @@ class LIBO(object):
|
||||||
if self._template is None:
|
if self._template is None:
|
||||||
return b''
|
return b''
|
||||||
|
|
||||||
|
self._template.setPrinter(self._set_properties({'PaperFormat': LETTER}))
|
||||||
self._render(data)
|
self._render(data)
|
||||||
|
|
||||||
path = '{}.ods'.format(tempfile.mkstemp()[1])
|
path = '{}.ods'.format(tempfile.mkstemp()[1])
|
||||||
|
|
Loading…
Reference in New Issue