All nodes are available on both n8n Cloud and self-hosted n8n and require you to install the CustomJS community package. See Installation.
The Compress Pages from PDF node allows you to compress PDF files using n8n. You can further extend this workflow to convert HTML or code into a PDF, compress the generated PDF, and return it as a binary response.