diff --git a/bits/67_wsxml.js b/bits/67_wsxml.js
index 64a057e..1c4937c 100644
--- a/bits/67_wsxml.js
+++ b/bits/67_wsxml.js
@@ -70,6 +70,15 @@ function write_ws_xml_merges(merges) {
return o + '';
}
+function write_ws_xml_pagesetup(setup) {
+ return writextag('pageSetup', {
+ scale: setup.scale || 'scale',
+ orientation: setup.orientation || 'portrait',
+ horizontalDpi : setup.horizontalDpi || '4294967292',
+ verticalDpi : setup.verticalDpi || '4294967292'
+ })
+}
+
//
//
//
@@ -326,6 +335,7 @@ function write_ws_xml(idx, opts, wb) {
if (ws['!rowBreaks'] !== undefined) o[o.length] = write_ws_xml_row_breaks(ws['!rowBreaks'])
if (ws['!colBreaks'] !== undefined) o[o.length] = write_ws_xml_col_breaks(ws['!colBreaks'])
+ if (ws['!pageSetup'] !== undefined) o[o.length] = write_ws_xml_pagesetup(ws['!pageSetup'])
if(o.length>2) { o[o.length] = (''); o[1]=o[1].replace("/>",">"); }
return o.join("");
diff --git a/xlsx.js b/xlsx.js
index 19cf543..75f95db 100644
--- a/xlsx.js
+++ b/xlsx.js
@@ -7595,6 +7595,15 @@ function write_ws_xml_merges(merges) {
return o + '';
}
+function write_ws_xml_pagesetup(setup) {
+ return writextag('pageSetup', {
+ scale: setup.scale || 'scale',
+ orientation: setup.orientation || 'portrait',
+ horizontalDpi : setup.horizontalDpi || '4294967292',
+ verticalDpi : setup.verticalDpi || '4294967292'
+ })
+}
+
//
//
//
@@ -7851,6 +7860,7 @@ function write_ws_xml(idx, opts, wb) {
if (ws['!rowBreaks'] !== undefined) o[o.length] = write_ws_xml_row_breaks(ws['!rowBreaks'])
if (ws['!colBreaks'] !== undefined) o[o.length] = write_ws_xml_col_breaks(ws['!colBreaks'])
+ if (ws['!pageSetup'] !== undefined) o[o.length] = write_ws_xml_pagesetup(ws['!pageSetup'])
if(o.length>2) { o[o.length] = (''); o[1]=o[1].replace("/>",">"); }
return o.join("");