Optimise a PDF for fast web view: browsers show page one before the whole file has loaded — for document portals, archives and long reports.
| Name | Type | Description |
|---|---|---|
file | file · required | PDF to optimise. |
curl -X POST https://api.bigapi.dev/v1/pdf/linearize -H 'Authorization: Bearer $KEY' -F 'file=@big.pdf' -o fast.pdf
HTTP/1.1 200 OK Content-Type: application/pdf X-BigAPI-Size-Before: 4812344 X-BigAPI-Size-After: 4830112 (linearized PDF – first page renders before the file finishes loading)