-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathsvg_images.txt
29 lines (20 loc) · 1.82 KB
/
svg_images.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
This describes a typical workflow for producing *.svg files with some data to be used in wiki pages, e.g.
ComparisonOtherCodes. The main issue is the default (at no scaling) size of the figure, which is now set to 400px.
1) Produce the preliminary figure in data processing software. If you can export it to SVG directly specifying the
size, that is all. Otherwise save it to any vector format, e.g. PDF.
2) Open PDF file in Inkscape, using default import settings.
3) Select everything, press lock icon above (lock aspect ratios), check the units to the right of the icon to be "px",
then set the width to 400 (field to the left of the icon).
4) Press Shift+Ctrl+D (File->Document Properties...), the section (above) should be "Page", look for second box (named
"Custom Size") in the section "Page Size". Expand there "Resize page to content..." and press the button
"Resize page to drawing or selection".
5) Save the file using "Plain SVG" as format (not "Inkscape SVG" for compatibility).
6) Close Inkscape. You will get a warning "The file was saved with a format that may cause data loss" (due to the
chosen format above). Ignore it and press "Close without saving".
Related issue is use of SVG files in MS Word. While some support of direct import of SVG files have been present since
version 2016, it is not perfect (especially if PDF is further produced from this file) and the imported images take much
more space inside DOCX file.
The solution is to use (once) version 2021 or later, where it is possible to convert SVG into EMF during import (for
instance, using Paste Special for object copied from inside Inkscape). The quality of the conversion seems to be very
good (including after saving as PDF), and the objects take even less space than the original SVG. Moreover, this object
can further be used (copied) in earlier versions of Word.