Open the PDF.co API Tester. In the left sidebar, scroll to Document, File & System and choose the upload method for your file. If Try it is disabled, click login, sign in to PDF.co, and return to the Tester. When you open a PDF.co request, the Tester fills in your API key.
Upload a local file up to 100 KB
Click Upload Small File, then Try it.
Under Body, click Drop a file here or click to upload and select your file. To supply a filename, expand the optional field and enter it in
name. Click Send.In the response, copy
url. Use it as the input for your next request.
Upload Base64-encoded file contents
Click Upload File Using Base64, then Try it.
Under Body, select Form to show the individual fields. Paste the Base64-encoded contents in
file. To supply a filename, click Expand 1 optional field and enter a name such assample.pdfinname.Click Send and copy
urlfrom the response.
The 4 MB request limit includes the Base64 text and the surrounding JSON. Encoding makes a file larger. If the encoded request is too large, use the two-step upload below.
Upload a larger local file with GET and PUT
Click Generate Pre-signed URL, then Try it. Click Expand 3 optional fields in the query section. Enter your filename in
nameand setcontenttypetoapplication/octet-stream. Click Send.Save both values from the response.
presignedUrlis the destination for the upload.urlis the link you will use to open or process the file. At this point GET has created the links. Your file is still on your computer.Click Upload File via Pre-signed URL, then Try it. Paste the complete
presignedUrl, including everything after the question mark, into thepresignedUrlfield. Under Body, click Drop a file here or click to upload, choose the local file, and click Send. The Tester sends the raw bytes usingapplication/octet-stream. Leave your PDF.co API key out of this storage request.HTTP 200 with an empty response body means storage accepted the file. To open or process it, use the
urlyou saved from GET. If the signed link expired, repeat GET to obtain a fresh pair.
The presigned upload accepts up to 2 GB. For PDF.co processing, each input file supplied by URL must be 100 MB or smaller.
Use the uploaded PDF in a test
For a PDF containing text, open PDF to Text and click Try it. Under Body, select Form and replace the example in url with the access url from your upload. Click Send. With inline output, read the extracted text in the response’s body field. With file output, open the new url in the conversion response. Look for a phrase from your PDF to confirm you processed your own file.
Reusing the same template or form? Open PDF.co File Storage and use its filetoken:// link for future requests. The Tester routes above provide temporary links for one-time use.

