'Drawing and printing a technical drawing in real scale
I'd like to draw some technical drawing, let's say a square 30x30cm, using Python and then print it on A4 paper (on several pages). It is important that the square has exactly 30x30cm on the printout. What libraries I could use for this purpose?
Solution 1:[1]
I thought it is much more difficult to keep the real scale, but it turns out it is enough to use an equation pixel = dpi * 10 * cm / 25.4 and simply draw the drawing using pixels. I chose Pillow library.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Monika |
