PDF
Compress PDF
Reduce PDF file size by compressing images and removing unnecessary data.
Compression Levels
- low: Minimal compression, best quality
- medium: Balanced compression (default)
- high: Maximum compression, reduced quality
post/pdf/compress
Request
- Base URL: https://api.filegraph.ai (the document declares no server; this is the origin it was published from)
- URL: https://api.filegraph.ai/pdf/compress
- Auth: API key in header X-API-Key
Query parameters
levelstring
Response
Successful Response
Example response
{
"content_base64": "JVBERi0xLjQK...",
"content_type": "application/pdf",
"filename": "output.pdf",
"size_bytes": 102400
}Changes
No recorded changes to this operation across all 1 revision of this API.