Skip to content

jmills147/excel_to_svg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Feb 17, 2022
8bbd98a · Feb 17, 2022

History

20 Commits
Feb 17, 2022
Feb 17, 2022
Feb 17, 2022
Feb 17, 2022
Feb 16, 2022
Feb 17, 2022
Feb 17, 2022
Feb 17, 2022
Feb 17, 2022

Repository files navigation

Excel to SVG

A small no-installation Windows application to export a chart from Excel to an svg file. Saves messing around with pdfs and Inkscape.

Alternatively a Python user can run the underlying script directly.

Windows .exe

  • Download from OneDrive (20mb)

  • No installation. Just download and launch.

screenshot

Python script

  1. Install requirements:
pip install -r requirements.txt
  1. In Excel, select the chart you wish to export.

  2. Run:

python svg_from_pdf.py

Range export

Although this application/script is intended for charts, it works for any range (which may contain shapes, text boxes, etc.).

Just set the print area and make sure that everything you are interested in is on the first page (Page Setup – Scaling – Fit to 1 page wide / tall).

The svg will include headers and footers so remove them in Excel if not wanted.

Issues

Problem installing xlWings

If you get the following error when running the script:

ImportError: DLL load failed while importing win32api: The specified procedure could not be found.

try reverting the pywin32 version:

pip install pywin32==300

(See stackoverflow disussion)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published