PDF Api Hub icon

PDF Api Hub

HTML to PDF

Actions36

Merge / Split PDF → Compress PDF

AI-generated

Summary

Compresses a PDF from a public URL or an incoming binary property using the selected compression level. Returns the result as PDF binary data, a hosted download URL, or a base64 string, depending on the output format.

Inputs

  • Input Type (required) — Choose URL or Binary File. URL is the default.
  • PDF URL (required) — For URL input, provide the publicly accessible PDF URL.
  • Binary Property Name (required) — For Binary File input, name the incoming binary property containing the PDF. Defaults to data.
  • Compression Level (required) — Choose low, medium, high, or max compression. Defaults to high; more aggressive compression may affect quality.
  • Output Format (required) — Choose PDF binary download, a hosted URL, or base64 data in JSON. Defaults to binary file.
  • Output Filename (required) — Set the filename for the compressed PDF. Defaults to compressed.pdf; .pdf is appended if omitted.

Output shape

A compressed PDF returned in the selected format.

The properties describe URL and base64 responses as including original size, savings, and ratio statistics, and hosted links as available for 30 days. The supplied source pack shows only the operation's function signature, so it does not expose runtime response details to verify those claims.

Links

Discussion