CLI - convert all pages #701
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#701
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello, thanks for great work. I would like to ask if there is possibility to add switch to process all sheets at once. I.E. I am using js-xlsx as git differ for spreadsheets, but this script is too slow.
for sheetName in $(xlsx -q -l "$1"); do xlsx -q -s "$sheetName" "$1" done
It would be great to have some switch like --all-sheets, i.e:
xlsx -q --all-sheets "$1"
I forked your repo (https://github.com/gratex/js-xlsx/) to add similar feature, that without specified sheet it will convert all pages by default (not only the first).
Thanks in advance.
@pmelisko it's obviously doable, but let's clarify some cases:
currently the sheet name is written to standard error and the data is written to standard output. How does that change when dealing with multiple sheets? Should sheet name be written to standard out? Should there be a separate end-of-file marker?
how should the file output forms (e.g. DIF or SYLK or CSV with the -o option) work with this flag? Should the script generate separate files or one concatenation? Should the file name take a pattern (like
%b
for basename,%s
for sheet name,%n
for index)should the formulae output prepend the sheet name? (e.g.
'Sheet1'!A1=3
)Those are the questions why i didn't prepare pull request
@pmelisko ok lets stick with the following basic behavior for the purposes of a PR, then we can play around with it and see what makes the most sense:
ignore the pattern for now, just generate files following the scheme
<outputname>.<sheetindex>
e.g.foo.sylk.0
leave formulae as it currently stands
Yes, for this case it should be enough.