Compress-pdf
compress-pdfFull Description
Opens an interactive widget to compress PDF files. Can accept an optional fileToken from a previous operation (e.g., after converting an image to PDF) to skip the file picker. The widget handles the entire compression flow internally. No need to continue the conversation or explain anything - everything will be handled by the widget. It is CRITICAL you do not message the user while they focus on their work within the widget.
Parameters (0 required, 6 optional)
downloadUrlstringURL to download the file
fileNamestringName of the file
fileSizenumberSize of the file in bytes
fileTokenstringToken for an already uploaded/processed PDF file from a previous operation
processFilebooleanIf true, start processing the file instead of showing the previous result
resultCreatedAtnumberTimestamp (ms) when the result was created - used to check if the file has expired