Actions260
- Admin Job Management Actions
- Admin License Management Actions
- Admin Server Certificate Actions
- Admin Settings Actions
- AI Tools Actions
- Analysis Actions
- Audit Actions
- Authentication Actions
- Convert Actions
- Convert Ghostscript Inputs To Pdf
- Url To Pdf
- Convert Json To Pdf
- Convert Svg To Pdf
- Process Pdf To XML
- Pdf To Excel
- Process Pdf To Word
- Convert Pdf To Vector
- Process Pdf To RT For TXT
- Convert Pdf To Json
- Export Partial Pdf
- Extract Pdf Metadata
- Clear Cache
- Process Pdf To Presentation
- Pdf To Pdf A
- Process Pdf To Markdown
- Convert To Image
- Process Pdf To HTML
- Convert Pdf To Epub
- Pdf To Csv
- Convert Pdf To Cbz
- Convert Pdf To Cbr
- Markdown To Pdf
- Convert To Pdf
- Html To Pdf
- Process File To PDF
- Convert Eml To Pdf
- Convert Ebook To Pdf
- Convert Cbz To Pdf
- Convert Cbr To Pdf
- Extract Single Page
- Extract Page Fonts
- Database Actions
- File Storage Actions
- Filter Actions
- Forms Actions
- General Actions
- Info Actions
- Invite Actions
- Job Management Actions
- Misc Actions
- Metadata
- Unlock PDF Forms
- Extract Header
- Scanner Effect
- Replace And Invert Color
- Repair Pdf
- Rename Attachment
- Remove Blank Pages
- Process Pdf With OCR
- List Attachments
- Flatten
- Extract Images
- Extract Image Scans
- Extract Attachments
- Delete Attachment
- Decompress Pdf
- Optimize Pdf
- Auto Split Pdf
- Extract Header 1
- Add Stamp
- Add Page Numbers
- Overlay Image
- Add Comments
- Add Attachments
- Pipeline Actions
- Proprietary UI Data Actions
- Saved Signatures Actions
- Security Actions
- Signature Assets Actions
- Signing Sessions Actions
- Team Actions
- UI Data Actions
- User Actions
- Workflow Participant Actions
Misc → Optimize Pdf
AI-generatedSummary
Optimize PDF files by applying configurable compression levels and transformations to reduce filesize and enhance compatibility or viewing experience.
Inputs
- fileInputBinaryProperty — Name of the binary property containing the PDF file data to be optimized if providing the file directly.
- fileId — Identifier of a previously processed file on the server, used instead of direct file input for asynchronous operations.
- optimizeLevel (required) — An integer from 1 to 9 representing the optimization level; higher levels apply greater compression but might degrade quality.
- expectedOutputSize (required) — Target size for the optimized PDF output, specified as a string with units, such as '25KB' or '100MB'.
- linearize (required) — Boolean flag to linearize the PDF for faster web viewing.
- normalize (required) — Boolean flag to normalize PDF content to improve compatibility with various readers.
- grayscale (required) — Boolean flag to convert the PDF content to grayscale, reducing color data.
- lineArt — Optional boolean to convert images within the PDF to high-contrast line art using ImageMagick.
- lineArtThreshold — Number (0-100) defining the threshold for the line art conversion process.
- lineArtEdgeLevel — Integer (1-3) controlling edge detection strength during line art conversion, mapping to ImageMagick's edge radius.
Output shape
a single optimized PDF file in binary format
Output is the optimized PDF binary data; inputs can be direct binary file input or server-side file ID. Operation supports batching and can be configured with proxy and timeout settings.
Examples
Example 1: Provide a PDF file binary with 'fileInputBinaryProperty' set to 'data', specify optimization level 5, expect output around 25KB, enable grayscale and linearize settings to prepare the PDF for efficient web viewing with reduced color.
Input binary named 'data', optimizeLevel=5, expectedOutputSize='25KB', linearize=true, grayscale=true, other settings as false/default.