Skip to content

Scaling and units on vector output (SVG/PDF) #226

Answered by hx2A
villares asked this question in Q&A
Discussion options

You must be logged in to vote

I don't know about PDF files but I know for SVG you can do something like this

<svg width="130mm" height="178mm" viewBox="0 0 130 178"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">

for a Sketch with size width of 130 and height of 178. Inserting that other stuff after thesvg tag will make it so that if you open it with Inkscape or plot it with a plotter, the dimensions of the shapes drawn will be the same as designed in the code.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by villares
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants