Apply page layout settings to PDF format

This commit is contained in:
Veronica Berglyd Olsen
2024-10-16 17:26:10 +02:00
parent 17c93c2172
commit 40817e73b4
2 changed files with 30 additions and 18 deletions
+1 -3
View File
@@ -301,6 +301,7 @@ class NWBuildDocument:
self._build.getInt("odt.pageCountOffset"),
)
if isinstance(bldObj, (ToOdt, ToQTextDocument)):
scale = nwLabels.UNIT_SCALE.get(self._build.getStr("format.pageUnit"), 1.0)
pW, pH = nwLabels.PAPER_SIZE.get(self._build.getStr("format.pageSize"), (-1.0, -1.0))
bldObj.setPageLayout(
@@ -312,9 +313,6 @@ class NWBuildDocument:
scale*self._build.getFloat("format.rightMargin"),
)
if isinstance(bldObj, ToQTextDocument):
pass
filtered = self._build.buildItemFilter(
self._project, withRoots=self._build.getBool("text.addNoteHeadings")
)