Security
Where your data goes, component by component.
SublimePDF has two very different parts: a server API that renders documents from what you send, and browser tools that mostly process files inside your tab. This page explains which is which and how to integrate safely.
Data flows
What is processed where
Server rendering and browser-local processing are not the same thing. We describe them separately so you can make the right decision for each document.
| Component | Processed or stored | Data involved | What to know |
|---|---|---|---|
| API requests | SublimePDF servers | HTML, template IDs, JSON data and render options you send; PDFs you send to merge, split or compress; the PDF returned in the response. | Rendered on the server, not in a browser. Sent over HTTPS and authenticated with your API key. Send only the fields a document needs. |
| URLs and linked assets | Fetched by SublimePDF servers | Pages you render with POST /url-to-pdf, and images, fonts or stylesheets your HTML references by URL. | Fetched from the internet at render time, without your session cookies. Never put tokens in URLs; inline assets you do not want fetched. |
| Saved templates | Your SublimePDF workspace | Template HTML and CSS, names and IDs. | Available to your account and to requests made with your API keys. Avoid putting secrets or personal data in template markup. |
| API keys | Created in the app, used by your servers | Bearer credentials that authorise API requests for your account. | Treat them like passwords. Revoke and rotate from Settings → API keys. |
| AI agents | Your executor, then SublimePDF servers | Tool arguments the model writes (HTML or template ID and data), and the tool result you return to the model. | Your code holds the API key and calls the API; the model sees only what you put in the conversation. Return a document reference, not the PDF. |
| Webhooks | Your endpoint | Notifications sent to the webhook_url you provide when an asynchronous render finishes. | Use HTTPS endpoints and verify notifications before acting on them. |
| Browser tools (most) | Your browser tab | PDFs and images you open in tools such as merge, split, rotate, sign, fill and redact. | Processed in the page with pdf-lib and PDF.js. The tool does not upload the file. The HTML to PDF tool prints with your browser, which loads any assets the HTML links to. |
| Conversion tools | SublimePDF conversion service | Files you choose to convert with PDF to Word, Word to PDF, OCR, PDF to Excel, protect or unlock. | These need a server. Each tool page says so before you choose a file. |
| Contact form | SublimePDF database | Your name, email address, topic and message. | Used to reply to you. See the privacy policy. |
Browser-local processing has limits too: browser extensions can read page content, and very large files are bounded by your device's memory. Our article on client-side and server PDF processing explains how to check what a tool sends using your browser's developer tools.
Your integration
Practices we recommend
Most document-generation risk sits in how keys and data are handled around the API call. These defaults close the common gaps.
- Keep keys on the server
- Call the API from your backend or your agent's tool executor. Never ship an API key in browser JavaScript, a mobile app bundle or a model prompt.
- One key per integration
- Create separate keys for production, staging and each agent. If one leaks or misbehaves, revoke it without touching the others.
- Minimise what you send
- A template only needs the fields it displays. Do not send whole customer records when an invoice needs a name and an address.
- Escape untrusted text
- Use double-brace placeholders for user or model-generated text so it is HTML-escaped. Reserve raw triple-brace output for markup you control.
- Allow-list templates for agents
- Validate every tool argument in your executor, accept only the template IDs an agent should use, cap HTML and data size, and keep a person in the loop for documents that leave your system.
- Store outputs yourself
- Save generated PDFs in storage you control, with your own access rules and retention, rather than relying on links you cannot revoke.
Details: API authentication, escaping in templates, receiving webhooks, a safe agent tool executor. For what PDF passwords and permission restrictions do and do not protect in the documents themselves, see our PDF security and encryption guide.
Due diligence
Security reviews and questionnaires
This page does not claim any compliance certification, and it does not state retention periods for request data or generated PDFs. If your procurement process needs specific documentation, contact us and we will tell you exactly what is available. Typical topics to ask about:
- How long request bodies, logs and rendered PDFs are kept, and how deletion works
- Where rendering runs and which sub-processors are involved
- Who on our side can access workspace data such as saved templates
- How security incidents are communicated
Legal obligations for personal data are set out in the privacy policy.
Report a vulnerability
If you believe you have found a security issue, email hello@sublimepdf.com with “Security report” in the subject, steps to reproduce and the affected URL or endpoint. Please do not access other customers' data or degrade the service while testing, and give us reasonable time to fix the issue before disclosure.
Questions before you integrate?
Tell us about your documents and data, and we will answer specifically.