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
Where `<host>` is either `embed` (default) or a company-specific portal identifier.
22
+
23
+
For PDFs already hosted at a URL, you can construct this link directly without any API call. The API at `agent.simplepdf.com` is a convenience layer that builds these links for you and handles file uploads for PDFs that are not hosted anywhere.
24
+
13
25
## From a URL
14
26
15
-
Pass the PDF URL as a query parameter:
27
+
If the PDF is already accessible at a URL, you have two options:
28
+
29
+
### Option 1: Construct the editor URL directly (no API call needed)
30
+
31
+
URL-encode the PDF URL and append it to the editor base:
GET https://agent.simplepdf.com?url=https://example.com/document.pdf
40
+
GET https://agent.simplepdf.com?url=https://example.com/form.pdf
19
41
```
20
42
21
-
Returns JSON with editor links. No POST needed.
43
+
Returns JSON with the editor URL and embed snippets.
22
44
23
45
## From a file
24
46
25
-
Upload a PDF file as multipart:
47
+
If the PDF is a local file (not hosted anywhere), upload it to the API. The file is stored temporarily (1 hour) to make it accessible to the browser-based editor.
48
+
49
+
### Shell
26
50
27
51
```bash
28
52
curl -X POST https://agent.simplepdf.com -F file=@document.pdf
0 commit comments