Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/content/docs/browser-rendering/faq.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ No. Browser Rendering requests originate from Cloudflare's global network and yo

There is no fixed limit on the number of requests per browser session. A single browser can handle multiple requests as long as it stays within available compute and memory limits.

### Can I use custom fonts in Browser Rendering?

Yes. If your webpage or PDF requires a font that is not pre-installed, you can load custom fonts at render time using `addStyleTag`. This works with both the [REST API](/browser-rendering/rest-api/) and [Workers Bindings](/browser-rendering/workers-bindings/). For instructions and examples, refer to [Use your own custom font](/browser-rendering/reference/supported-fonts/#use-your-own-custom-font).

<Render
file="manage-concurrency-faq"
product="browser-rendering"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,4 +269,12 @@ With your script now running, you can pass in a `?name` parameter to the local U

---

## Custom fonts

If your PDF requires a specific font that is not pre-installed in the Browser Rendering environment, you can load custom fonts using `addStyleTag`. This allows you to inject fonts from a CDN or embed them as Base64 strings before generating your PDF.

For detailed instructions and examples, refer to [Use your own custom font](/browser-rendering/reference/supported-fonts/#use-your-own-custom-font).

---

Dynamically generating PDF documents solves a number of common use-cases, from invoicing customers to archiving documents to creating dynamic certificates (as seen in the simple example here).
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ curl -X POST 'https://api.cloudflare.com/client/v4/accounts/<accountId>/browser-
--output "dynamic-header-footer.pdf"
```

### Use custom fonts

If your PDF requires a font that is not pre-installed in the Browser Rendering environment, you can load custom fonts using the `addStyleTag` parameter. For instructions and examples, refer to [Use your own custom font](/browser-rendering/reference/supported-fonts/#rest-api).

<Render
file="setting-custom-user-agent"
product="browser-rendering"
Expand Down