Skip to main content

PDF Compressor

This connector is used to reduce the size of a PDF file. It takes an object with the shape of a File as input and outputs the compressed file.

Input

{ File: {
file: base 64 string of the PDF,
name: The file name(optional. When not provided, the current date is used as the file name),
extension: Also optional. The connector expects a .pdf extention and will use that even if a different extension is provided.,
}
}

Output

{
success: Boolean,
message: Optional. Only added when there's an error,
File: {// optional. Only added when there are no errors from the compression,
file: base 64 string of the PDF,
name: The file name),
mime_type: The file type e.g. application/pdf,
}
}

Testing

You can test this connector using a JS connector that returns an output similar to this connector's input, or by downloading a PDF file using BA connector.