Skip to content

Commit 28626ab

Browse files
committed
Zoom for content
1 parent 0edbab4 commit 28626ab

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/render.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ module.exports = class Render {
4747

4848
generate(format) {
4949
let props = {
50+
zoom: `0.9`,
5051
size: {
5152
width: 880,
5253
height: 480
@@ -79,6 +80,7 @@ module.exports = class Render {
7980
}
8081
break;
8182
case `dds.prtf`:
83+
props.zoom = `0.7`;
8284
props.size = {
8385
width: 132 * 11,
8486
height: 66 * 20
@@ -122,7 +124,7 @@ module.exports = class Render {
122124
body += content.body;
123125

124126
return [
125-
`<html>`,
127+
`<html style="zoom: ${props.zoom};">`,
126128
`<style>${css}</style>`,
127129
`<body>${body}</body>`,
128130
`</html>`
@@ -488,6 +490,9 @@ module.exports = class Render {
488490

489491
const key = keyword.name;
490492
switch (key) {
493+
case `PAGNBR`:
494+
field.value = `####`
495+
break;
491496
case `COLOR`:
492497
css += `color: ${colors[keyword.value]};`
493498
break;

0 commit comments

Comments
 (0)