Actions19
- AI Invoice Parser
- URL/HTML to PDF
- Merge PDF
- Split PDF
- Convert To PDF
- Convert From PDF
- Add Text/Images to PDF
- Fill a PDF Form
- PDF Information & Form Fields
- Compress PDF
- PDF Security
- Rotate PDF Pages
- Delete PDF Pages
- Search in PDF
- Search & Replace Text or Delete
- Barcode Reader
- Barcode Generator
- Make PDF Searchable or Unsearchable
- Upload File
Overview
This node provides functionality to compress PDF files by specifying a URL of the PDF to be compressed. It is useful in scenarios where users need to reduce the file size of PDFs hosted online, for example, to save storage space, speed up file transfers, or prepare documents for web publishing. The node supports advanced options such as setting output file name, password protection, HTTP authentication for accessing the source PDF, and custom compression configurations.
Practical examples:
- Compressing an invoice PDF from a remote server before attaching it to an email.
- Reducing the size of a PDF report stored on a public URL to optimize download times.
- Applying password protection and compression simultaneously on a confidential PDF document.
Properties
| Name | Meaning |
|---|---|
| Url | The URL of the PDF file to compress |
| Advanced Options | A collection of optional settings to customize the compression process: |
| File Name | The desired name for the output compressed PDF file |
| Webhook URL | A callback URL or webhook endpoint to receive the output data asynchronously |
| Output Links Expiration (In Minutes) | Duration in minutes after which the output link expires |
| Password | Password of the PDF file if it is password protected |
| HTTP Username | Username for HTTP authentication if required to access the source PDF URL |
| HTTP Password | Password for HTTP authentication if required to access the source PDF URL |
| Custom Compression Configuration | JSON object defining custom compression parameters to override defaults |
Output
The node outputs a JSON object containing information about the compressed PDF file. This typically includes URLs or links to download the compressed file, metadata about the compression process, and any relevant status messages. If a webhook URL is provided, the output may be delivered asynchronously via that callback.
No binary data is directly output by the node; instead, it provides references (links) to the processed PDF files.
Dependencies
- Requires internet access to fetch the PDF from the specified URL.
- May require HTTP Basic Authentication credentials if the source URL is protected.
- Uses an external PDF compression service or API (implied by the bundled code structure).
- Optional webhook URL requires a publicly accessible endpoint to receive callbacks.
- Custom compression configuration expects valid JSON input according to the compression service's specification.
Troubleshooting
- Invalid URL or inaccessible PDF: Ensure the URL is correct and publicly accessible or provide valid HTTP credentials if protected.
- Authentication failures: Verify HTTP username and password if the source PDF requires authentication.
- Incorrect JSON in custom compression config: Validate JSON syntax and ensure it matches expected schema.
- Webhook callback issues: Confirm the webhook URL is reachable and correctly handles incoming requests.
- Expired output links: Adjust the expiration time if links expire too soon for your use case.
Common error messages might include network errors, authentication failures, invalid input format, or service-specific errors indicating compression failure. Checking logs and verifying all inputs usually resolves these issues.