You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+61-29Lines changed: 61 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,7 @@
14
14
15
15
Create PDF documents from YAML-configured SVG templates.
16
16
17
-
## Quickstart
18
-
19
-
### Installation
17
+
## Installation
20
18
21
19
pdfbaker is available on [PyPI](https://pypi.org/project/pdfbaker/) and can be installed
22
20
using [pipx](https://github.com/pypa/pipx):
@@ -33,17 +31,17 @@ sudo apt install pipx
33
31
pipx ensurepath
34
32
```
35
33
36
-
####Windows Requirements
34
+
### Windows Requirements
37
35
38
36
If you are using Windows, GTK needs to be installed:
39
37
[GTK for Windows Runtime Environment Installer](https://github.com/tschoonj/GTK-for-Windows-Runtime-Environment-Installer/releases/download/2022-01-04/gtk3-runtime-3.24.31-2022-01-04-ts-win64.exe)
40
38
41
39
- Choose Install GTK+ libraries
42
-
- Tick to setup path (otherwise add the install dll folder manually)
40
+
- Tick to setup path (otherwise add the install DLL folder manually)
43
41
- Choose your installation location
44
42
- Complete the installation
45
43
46
-
###Optional Dependencies
44
+
## Optional Dependencies
47
45
48
46
- For SVG to PDF conversion, [CairoSVG](https://cairosvg.org/) is used by default. If
49
47
you need [Inkscape](https://inkscape.org/) instead, install it:
@@ -64,30 +62,60 @@ If you are using Windows, GTK needs to be installed:
64
62
sudo apt install fonts-roboto
65
63
```
66
64
67
-
### Basic Usage
65
+
##Quickstart: Create templated PDF from an SVG
68
66
69
-
1. Create your document design in an SVG editor
70
-
2. Replace text with variables using Jinja2 (e.g., `{{ title }}`)
71
-
3. Configure your content in YAML
72
-
4. Generate PDFs with:
67
+
The fastest way to get started is with the `--create-from` option:
73
68
74
-
```bash
75
-
pdfbaker <config_file>
76
-
```
69
+
1. Design your document in an SVG editor or convert to SVG.
70
+
2. Run pdfbaker with `--create-from` to scaffold a new project and generate your first
0 commit comments