summaryrefslogtreecommitdiff
path: root/xmlDrawing.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2020-05-29 00:26:40 +0800
committerxuri <xuri.me@gmail.com>2020-05-29 00:26:40 +0800
commit2ae631376b95ff0a59ea18c2c0befcd50135b020 (patch)
treec3542c127aed38cac104c513047327d6316b91d1 /xmlDrawing.go
parentc168233e70db8f220bd07d9d6d277ae9e2a4a73f (diff)
add limits for total columns, row and filename length
Diffstat (limited to 'xmlDrawing.go')
-rw-r--r--xmlDrawing.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmlDrawing.go b/xmlDrawing.go
index 808bed5..b2eeed6 100644
--- a/xmlDrawing.go
+++ b/xmlDrawing.go
@@ -80,6 +80,15 @@ const (
ExtURIMacExcelMX = "{64002731-A6B0-56B0-2670-7721B7C09600}"
)
+// Excel specifications and limits
+const (
+ FileNameLength = 207
+ TotalRows = 1048576
+ TotalColumns = 16384
+ TotalSheetHyperlinks = 65529
+ TotalCellChars = 32767
+)
+
var supportImageTypes = map[string]string{".gif": ".gif", ".jpg": ".jpeg", ".jpeg": ".jpeg", ".png": ".png", ".tif": ".tiff", ".tiff": ".tiff"}
// xlsxCNvPr directly maps the cNvPr (Non-Visual Drawing Properties). This