POST api/pdf/optimize
Request Information
URI Parameters
None.
Body Parameters
PdfOptimizeRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PdfBase64 | string |
None. |
|
| RemoveUnusedObjects | boolean |
None. |
|
| RemoveUnusedStreams | boolean |
None. |
|
| CompressStreams | boolean |
None. |
|
| OptimizeImages | boolean |
None. |
|
| ImageDpi | integer |
None. |
|
| JpegQuality | integer |
None. |
|
| PreferJpeg | boolean |
None. |
|
| RemoveAlpha | boolean |
None. |
|
| Flatten | boolean |
None. |
|
| RemoveMetadata | boolean |
None. |
|
| RemoveOutlines | boolean |
None. |
|
| RemoveAttachments | boolean |
None. |
|
| RemoveAnnotations | boolean |
None. |
|
| PreserveTransparency | boolean |
None. |
|
| SkipMaskedImages | boolean |
None. |
|
| MinImagePixels | integer |
None. |
|
| Linearize | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"PdfBase64": "sample string 1",
"RemoveUnusedObjects": true,
"RemoveUnusedStreams": true,
"CompressStreams": true,
"OptimizeImages": true,
"ImageDpi": 1,
"JpegQuality": 1,
"PreferJpeg": true,
"RemoveAlpha": true,
"Flatten": true,
"RemoveMetadata": true,
"RemoveOutlines": true,
"RemoveAttachments": true,
"RemoveAnnotations": true,
"PreserveTransparency": true,
"SkipMaskedImages": true,
"MinImagePixels": 1,
"Linearize": true
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |