summaryrefslogtreecommitdiff
path: root/xmlWorksheet.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-03-18 00:52:10 +0800
committerxuri <xuri.me@gmail.com>2022-03-18 00:52:10 +0800
commit14b461420fc3d3b06b01d7b0584b422b3e1b40fb (patch)
tree5a51208181c9ec1042e0610a533cd3b6332171a9 /xmlWorksheet.go
parent1da129a3df144d69cfc67f05a4dec88063a774e8 (diff)
This fix scientific notation and page setup fields parsing issue
Diffstat (limited to 'xmlWorksheet.go')
-rw-r--r--xmlWorksheet.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmlWorksheet.go b/xmlWorksheet.go
index c327d3c..13deba5 100644
--- a/xmlWorksheet.go
+++ b/xmlWorksheet.go
@@ -116,7 +116,7 @@ type xlsxPageSetUp struct {
FirstPageNumber string `xml:"firstPageNumber,attr,omitempty"`
FitToHeight *int `xml:"fitToHeight,attr"`
FitToWidth *int `xml:"fitToWidth,attr"`
- HorizontalDPI int `xml:"horizontalDpi,attr,omitempty"`
+ HorizontalDPI float64 `xml:"horizontalDpi,attr,omitempty"`
RID string `xml:"http://schemas.openxmlformats.org/officeDocument/2006/relationships id,attr,omitempty"`
Orientation string `xml:"orientation,attr,omitempty"`
PageOrder string `xml:"pageOrder,attr,omitempty"`
@@ -126,7 +126,7 @@ type xlsxPageSetUp struct {
Scale int `xml:"scale,attr,omitempty"`
UseFirstPageNumber bool `xml:"useFirstPageNumber,attr,omitempty"`
UsePrinterDefaults bool `xml:"usePrinterDefaults,attr,omitempty"`
- VerticalDPI int `xml:"verticalDpi,attr,omitempty"`
+ VerticalDPI float64 `xml:"verticalDpi,attr,omitempty"`
}
// xlsxPrintOptions directly maps the printOptions element in the namespace