Skip to content

daiiz/svg-spreadsheet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG Spreadsheet

A CLI tool to convert tables created in Spreadsheet into SVG images. Render the HTML <table> element exported from Spreadsheet in the SVG <foreignObject> element. This SVG image can be displayed in the <img> element, keeping the table's border, background color, and other styles.

Run

$ node src/index.js 1WmwoZ0hMDfMvRdbUPHD7NKpz8JJBocy7pfhVWx3sov8 e-san
#                   ^^^ SheetId                                  ^^^ SheetName

Examples

Spreadsheet

https://docs.google.com/spreadsheets/d/1WmwoZ0hMDfMvRdbUPHD7NKpz8JJBocy7pfhVWx3sov8/edit?usp=sharing (Public)

Results

Here are the SVG images (out/out.svg) generated by this tool.
NOTE: PNG images (out/out.png) are also generated at the same time.


Data source: http:https://www.latex-cmd.com/fig_tab/table01.html


Data source: http:https://www.esan.jp/information/article/お弁当受注販売への切替_スピード『週替り丼』開始

Related works for SVG