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
Each of them is independently configurable via `EmbedPDF.init`.
24
25
@@ -177,6 +178,38 @@ When a signature stylesheet is loaded, the snippet also calls `document.fonts.lo
177
178
178
179
The four defaults (Caveat, Dancing Script, Great Vibes, Pacifico) are all licensed under the SIL Open Font License, so you can freely redistribute them alongside a self-hosted build.
179
180
181
+
## 4. Disable or self-host the stamp library
182
+
183
+
The Rubber Stamp panel ships with a default stamp library that the stamp plugin loads at init from a locale-aware manifest on jsDelivr (`cdn.jsdelivr.net/npm/@embedpdf/default-stamps/{locale}/manifest.json`). The plugin fetches that manifest and the PDF it references, so it makes external requests on startup. Configure it through the top-level `stamp` key.
184
+
185
+
### Option A — Disable the default stamps
186
+
187
+
Pass an empty `manifests` array. No external request is made. The Rubber Stamp panel stays functional for user-created stamps via the local default library.
188
+
189
+
```js
190
+
EmbedPDF.init({
191
+
// ...
192
+
stamp: { manifests: [] },
193
+
});
194
+
```
195
+
196
+
### Option B — Self-host the stamp manifest
197
+
198
+
Serve the manifest (and the PDF it references) from your own origin and point `manifests` at it. The manifest's `pdf` path is resolved relative to the manifest URL unless it is absolute.
199
+
200
+
```js
201
+
EmbedPDF.init({
202
+
// ...
203
+
stamp: {
204
+
manifests: [{ url:'/stamps/manifest.json' }],
205
+
},
206
+
});
207
+
```
208
+
209
+
<Callouttype="info">
210
+
The empty in-memory "Custom Stamps" library is created locally and never hits the network. If you don't want the Rubber Stamp feature at all, you can also pass `stamp: { manifests: [], defaultLibrary: false }`, and hide the toolbar button entirely by disabling the `insert-rubber-stamp` category (see [Customizing the UI](./customizing-ui#disabling-features)).
211
+
</Callout>
212
+
180
213
## Complete airgapped example
181
214
182
215
Putting it all together:
@@ -205,6 +238,9 @@ EmbedPDF.init({
205
238
ui:null,
206
239
signature:null,
207
240
},
241
+
242
+
// 4. No default stamp library fetched from the CDN.
0 commit comments