Guides / PDF

Linearize PDF (fast web view)

POST /v1/pdf/linearize  · 

Optimise a PDF for fast web view: browsers show page one before the whole file has loaded — for document portals, archives and long reports.

Parameters

NameTypeDescription
filefile · requiredPDF to optimise.

Example request

curl -X POST https://api.bigapi.dev/v1/pdf/linearize -H 'Authorization: Bearer $KEY' -F 'file=@big.pdf' -o fast.pdf

Example response

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)

Related guides