You're looking at a specific version of this model. Jump to the model overview.
unityaisolutions /pdf-compressor:932bf64f
Input schema
The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
|
string
|
PDF file to compress
|
||
| compress_images |
boolean
|
True
|
Compress images within the PDF
|
| image_quality |
integer
|
75
Min: 1 Max: 100 |
JPEG quality for image compression (1-100)
|
| image_max_size |
integer
|
1920
|
Maximum image dimension in pixels (0 = no resize)
|
| remove_metadata |
boolean
|
True
|
Remove PDF metadata to reduce file size
|
| compression_level |
integer
|
6
Min: 1 Max: 9 |
PDF compression level (1-9, higher = better compression)
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'items': {'format': 'uri', 'type': 'string'},
'title': 'Output',
'type': 'array',
'x-cog-array-type': 'iterator'}