Actions34
- Asset Actions
- Conversion Actions
- Document Actions
- E-Invoice Actions
- PDF Service Actions
- Template Actions
- Workspace Actions
PDF Service → Optimize Document
AI-generatedSummary
Optimize a PDF through the PDF Generator API using either a public URL or base64 content. Choose whether to receive the result as JSON containing base64 data, JSON containing a download URL, or a binary PDF file.
Inputs
- PDF Source (required) — Choose whether to provide the PDF as a public URL or base64-encoded content.
- PDF URL (required) — Public URL of the PDF; shown when PDF Source is From URL.
- PDF Base64 (required) — Base64-encoded PDF content; shown when PDF Source is From Base64.
- Output Format — Select Base64 (JSON), URL (JSON), or File (Binary). Defaults to Base64 (JSON).
Output shape
One output item per input item, with the optimized PDF and optimization statistics.
Base64 and URL formats return JSON with success, operation, format, the API response fields, and optimizationStats. File format returns the PDF as binary under the property processed-document.pdf, plus JSON metadata and optimizationStats. Statistics include originalSize, optimizedSize, savedBytes, and compressionRatio when the API supplies size headers; unavailable values are null. The node requires PDF Generator API credentials.
Examples
Example 1: PDF optimization
Optimize a PDF from a public URL and receive it as a binary file.