Skip to content

Commit

Permalink
Added notes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
whitead committed Dec 3, 2022
1 parent 79e2aca commit 1a84afe
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Expand Up @@ -125,11 +125,19 @@ You can see that the inner image contains the raster now instead of the blue rec

![image](https://user-images.githubusercontent.com/908389/133010015-a1713504-33b6-4c26-960d-6da50b5a9561.png)

### Save to PDF
## Save to PDF

I prefer [`cairosvg`](https://github.com/Kozea/CairoSVG):

```py
import cairosvg
cairosvg.svg2pdf(bytestring=svg, write_to='image.pdf')
```

## Layout a set of SVGs

Sometimes you just want to slap a bunch of SVGs together into a grid. You can do that with this method:

```py
svg = skunk.layout_svgs(svgs)
```

0 comments on commit 1a84afe

Please sign in to comment.