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
- 🔐 Token-based auth via `CONVERTAPI_API_TOKEN` or `Set-ConvertApiToken`
13
13
- 📄 Single local file upload (raw bytes, `Content-Disposition`)
14
14
- 🌐 Single URL conversion (query param `Url=…`)
15
-
- 📦 Multi-input **multipart/form-data** for merges: `Files[0]`, `Files[1]`, …
15
+
- 📦 Multi-input **multipart/form-data** (`Files[0]`, `Files[1]`, …) when you pass multiple inputs
16
+
- 📎 **Extra file parameters**: any parameter whose name ends with `File` (e.g., `OverlayFile`, `BackgroundFile`) is detected and uploaded as a file part automatically
16
17
- ⚙️ Extra options via `-Parameters @{ Name = 'Value' }`
17
-
- 💾 Saves results to disk; preserves API-provided filenames
18
+
- 💾 Saves results to disk; preserves API‑provided filenames
> If you downloaded a ZIP in a browser, Windows may mark files as “downloaded from internet.”
56
+
> Run once to unblock (not needed when installing via **PowerShell Gallery** or **git clone**):
57
+
> ```powershell
58
+
> Set-ExecutionPolicy -Scope Process Bypass -Force
59
+
> Unblock-File -Path '<repo>\*' -Recurse
60
+
> ```
61
+
44
62
---
45
63
46
64
## Authentication
@@ -119,7 +137,29 @@ Invoke-ConvertApi -From pdf -To merge `
119
137
-OutputPath .\out -StoreFile
120
138
```
121
139
122
-
> The module automatically switches to **multipart/form-data** with `Files[0]`, `Files[1]`, … when it detects multiple inputs (files and/or URLs).
140
+
> When you pass multiple inputs (files and/or URLs), the module automatically uses **multipart/form‑data** and sends them as `Files[0]`, `Files[1]`, …
141
+
142
+
---
143
+
144
+
## Watermark / Overlay (extra file parameter)
145
+
146
+
Some converters accept **additional files** as parameters. Any parameter whose name ends with `File` is treated as a file part when the value is a local path.
147
+
148
+
**PDF → watermark-overlay (overlay from local PDF):**
149
+
```powershell
150
+
Invoke-ConvertApi -From pdf -To watermark-overlay `
0 commit comments