From 2ae631376b95ff0a59ea18c2c0befcd50135b020 Mon Sep 17 00:00:00 2001 From: xuri Date: Fri, 29 May 2020 00:26:40 +0800 Subject: add limits for total columns, row and filename length --- xmlDrawing.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xmlDrawing.go') 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 -- cgit v1.2.1